/* RainChat Login & Register Page */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.login-box {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    min-height: 480px;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.brand h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.brand p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 32px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    opacity: 0.9;
}

.feature-icon {
    font-size: 24px;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form {
    width: 100%;
    max-width: 320px;
}

.login-form h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #6a11cb;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-login:hover { opacity: 0.9; }
.btn-login:active { transform: scale(0.98); }

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: #6a11cb;
    text-decoration: none;
    font-size: 14px;
}

.login-footer a:hover { text-decoration: underline; }

.alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

@media (max-width: 768px) {
    .login-box { flex-direction: column; }
    .login-left { padding: 30px; min-height: 160px; }
}
