/* Login Page — TaxFlow */

:root {
    --brand-gold-rgb: 201, 152, 42;
    --brand-blue-rgb: 26, 53, 102;
    --font-family: 'Inter', sans-serif;
    --error-bg: rgba(229, 115, 115, 0.1);
    --error-border: rgba(229, 115, 115, 0.3);
    --error-text: #e57373;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 52px 48px;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Shared logo styles */
.login-logo,
.login-logo-fallback {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(var(--brand-gold-rgb), 0.5);
    margin-bottom: 24px;
    box-shadow: 0 0 24px rgba(var(--brand-gold-rgb), 0.15);
}

.login-logo {
    object-fit: cover;
}

.login-logo-fallback {
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-l));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.login-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.5;
}

.login-divider {
    width: 100%;
    height: 1px;
    background: var(--card-border);
    margin-bottom: 32px;
}

button.login-btn {
    border: none;
    outline: none;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--brand-navy);
    border: 1px solid rgba(var(--brand-gold-rgb), 0.6);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(var(--brand-blue-rgb), 0.4);
    margin-bottom: 20px;
}

.login-btn:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--brand-gold-rgb), 0.35);
}

.login-btn svg {
    flex-shrink: 0;
}

.login-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Error banner */
.login-error {
    width: 100%;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--error-text);
    margin-bottom: 24px;
}

/* Access Denied Page */
.no-acceso-icon {
    color: var(--brand-gold);
    margin-bottom: 20px;
}

.no-acceso-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.no-acceso-msg {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.no-acceso-email {
    color: var(--brand-gold-l);
    font-weight: 600;
}

.login-back {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    transition: color 0.2s;
}

.login-back:hover {
    color: var(--brand-gold-l);
}
