/* =============================================
   Base
   ============================================= */

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

body {
    background-color: #f0f2f5;
    color: #1a1a2e;
    position: relative;
}

/* =============================================
   Auth card
   ============================================= */

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.auth-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

/* =============================================
   Form controls
   ============================================= */

.form-control {
    border-radius: 8px;
    border-color: #d1d5db;
    padding: 0.6rem 0.875rem;
    font-size: 0.9375rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

/* =============================================
   Buttons
   ============================================= */

.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.6rem 1rem;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #4338ca;
    border-color: #4338ca;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.55rem 1rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    transition: background-color 0.15s, border-color 0.15s;
}

.btn-social:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

/* =============================================
   Divider
   ============================================= */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #9ca3af;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* =============================================
   Links
   ============================================= */

a {
    color: #4f46e5;
    text-decoration: none;
}

a:hover {
    color: #4338ca;
    text-decoration: underline;
}

.auth-footer-link {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1.25rem;
}

/* =============================================
   Language switcher
   ============================================= */

.lang-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.2rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
    line-height: 1;
}

.lang-btn:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.lang-btn--active {
    color: #4f46e5;
    font-weight: 700;
}

/* =============================================
   Alerts
   ============================================= */

.alert {
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.text-danger {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* =============================================
   Responsive — mobile
   ============================================= */

@media (max-width: 480px) {
    .auth-card {
        border-radius: 0;
        box-shadow: none;
        padding: 1.75rem 1.25rem;
        min-height: 100dvh;
    }

    body {
        background-color: #fff;
    }

    main {
        align-items: flex-start !important;
        padding-top: 3.5rem !important;
    }

}
