/* Login Page Styles */
:root {
    --login-primary: #1e3a5f;
    --login-primary-dark: #0d1b2a;
    --login-accent: #4cc9f0;
    --login-text: #333;
    --login-text-muted: #6c757d;
    --login-border: #dee2e6;
    --login-bg: #f8f9fa;
    --login-error: #dc3545;
    --login-success: #198754;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--login-primary) 0%, var(--login-primary-dark) 100%);
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.login-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: white;
}

.login-brand-logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.login-brand-logo i {
    color: var(--login-accent);
}

.login-brand-tagline {
    font-size: 1.125rem;
    opacity: 0.9;
    text-align: center;
    max-width: 400px;
}

.login-form-container {
    width: 100%;
    max-width: 480px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.login-form-header {
    margin-bottom: 2rem;
}

.login-form-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--login-text);
    margin-bottom: 0.5rem;
}

.login-form-header p {
    color: var(--login-text-muted);
}

.login-step {
    display: none;
}

.login-step.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--login-text);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--login-border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--login-primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.form-input.error {
    border-color: var(--login-error);
}

.form-input-wrapper {
    position: relative;
}

.form-input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--login-text-muted);
    cursor: pointer;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-wrapper input {
    width: 18px;
    height: 18px;
    accent-color: var(--login-primary);
}

.checkbox-wrapper label {
    font-size: 0.875rem;
    color: var(--login-text-muted);
}

.btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--login-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--login-primary-dark);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--login-border);
    color: var(--login-text);
}

.btn-outline:hover {
    background: var(--login-bg);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert.show {
    display: flex;
}

.alert-error {
    background: #fee;
    color: var(--login-error);
    border: 1px solid #fcc;
}

.alert-success {
    background: #d4edda;
    color: var(--login-success);
    border: 1px solid #c3e6cb;
}

.alert i {
    font-size: 1.25rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--login-bg);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.user-badge-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--login-primary) 0%, var(--login-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-badge-info {
    flex: 1;
}

.user-badge-email {
    font-weight: 500;
    color: var(--login-text);
}

.user-badge-change {
    font-size: 0.8rem;
    color: var(--login-primary);
    cursor: pointer;
    text-decoration: none;
}

.user-badge-change:hover {
    text-decoration: underline;
}

.gdpr-notice {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--login-border);
}

.gdpr-notice h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--login-text-muted);
    margin-bottom: 0.75rem;
}

.gdpr-notice p {
    font-size: 0.75rem;
    color: var(--login-text-muted);
    line-height: 1.5;
}

.gdpr-notice a {
    color: var(--login-primary);
}

.password-requirements {
    font-size: 0.8rem;
    color: var(--login-text-muted);
    margin-top: 0.5rem;
}

.password-requirements ul {
    margin: 0.5rem 0 0 1.25rem;
}

.password-strength {
    height: 4px;
    background: var(--login-border);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength-bar.weak { width: 33%; background: var(--login-error); }
.password-strength-bar.medium { width: 66%; background: #ffc107; }
.password-strength-bar.strong { width: 100%; background: var(--login-success); }

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-brand {
        padding: 2rem;
        min-height: auto;
    }

    .login-brand-logo {
        font-size: 2rem;
    }

    .login-form-container {
        max-width: 100%;
        padding: 2rem;
    }
}
