/* Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-button-color) 0%, var(--secondary-button-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

/* Login Header Minimal */
.login-header-minimal {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header-minimal .logo h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-header-minimal .logo span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 400;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

.login-header h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
    font-size: 0.9rem;
}

.success-message {
    background: #efe;
    color: #2a7d2a;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #cec;
    font-size: 0.9rem;
}

.forgot-password-link {
    text-align: right;
    margin-top: -12px;
    margin-bottom: 12px;
}

.forgot-password-link a {
    color: #667eea;
    font-size: 0.85rem;
    text-decoration: none;
}

.forgot-password-link a:hover {
    text-decoration: underline;
}

.form-help {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 0.8rem;
}

.login-form {
    text-align: left;
}

.login-stay-logged-in {
    margin: 0 0 4px;
}

.login-stay-logged-in .login-stay-logged-in-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.login-stay-logged-in input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid #e1e5e9;
    background: #fff;
    box-shadow: none;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-button-color) 0%, var(--secondary-button-color) 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.login-footer p {
    color: #999;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
}

/* Loading state */
.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.login-sso-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 6px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-sso-divider::before,
.login-sso-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e5e9;
}

.login-sso-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #1f2937;
    border: 1px solid #c7c7c7;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.login-sso-btn:hover {
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.login-sso-logo {
    display: inline-flex;
    width: 21px;
    height: 21px;
}

.login-sso-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.login-sso-brand[hidden],
.login-password-step[hidden],
.login-sso-step[hidden],
.login-sso-email-help[hidden],
.login-sso-back[hidden],
.login-credentials[hidden],
.login-mfa-step[hidden] {
    display: none;
}

.login-mfa-title {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 600;
}

.login-mfa-step .form-help {
    display: block;
    margin-bottom: 16px;
    color: #64748b;
    font-size: 0.9rem;
}

.login-mfa-step .login-sso-back {
    margin-top: 16px;
}

.login-sso-brand-logo {
    display: flex;
    width: 48px;
    height: 48px;
}

.login-sso-brand-title {
    margin: 0;
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 600;
}

.login-sso-continue {
    margin-top: 4px;
}

.login-sso-back {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: none;
    color: #667eea;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.login-sso-back:hover {
    text-decoration: underline;
}

:root {
    --primary-button-color: #0696fe;
    --secondary-button-color: #0b4ea7;
    --primary-button-color-hover: #0587e0;
    --secondary-button-color-hover: #0a3e85;
}