/* =========================================================
   AUTH – Login / Logout, schlankes modernes Kartendesign
   =========================================================
   Nutzt bewusst dieselben --cc-*-Variablen wie der Rest von
   careClair (public.css), damit Login/Logout nicht wie ein
   Fremdkörper wirken.
   ========================================================= */

.auth-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: linear-gradient(160deg, #f7f8fa 0%, #eef1f6 100%);
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 40px 32px;
    box-sizing: border-box;
    text-align: center;
}

.auth-logo {
    height: 40px;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cc-text-dark, #333333);
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* =========================================================
   Formular
   ========================================================= */

.auth-card .form-label {
    display: block;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cc-text-dark, #333333);
    margin-bottom: 6px;
}

.auth-card .form-control {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--cc-border, #cfd8e3);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-card .form-control:focus {
    outline: none;
    border-color: var(--cc-blue, #1e73e8);
    /*
       NEU (Backlog Punkt 3): Der Fokus-Ring war fest auf ein blaues
       Rgba() gesetzt, unabhängig vom aktiven Theme - bei z. B. "Wald"
       oder "Sonnenuntergang" passte der blaue Schimmer dann nicht mehr
       zum (jetzt theme-fähigen) Button darunter. color-mix() erzeugt
       den Ring jetzt direkt aus derselben Variable wie der Button.
    */
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc-blue, #1e73e8) 18%, transparent);
}

.auth-card .mb-3 {
    margin-bottom: 18px;
    text-align: left;
}

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

.auth-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    background-color: var(--cc-blue, #1e73e8);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.15s ease;
}

.auth-btn-primary:hover {
    background-color: var(--cc-blue-dark, #145a9e);
    color: #ffffff;
    transform: translateY(-1px);
}

.auth-btn-primary:active {
    transform: scale(0.98);
}

/* =========================================================
   Fehlermeldung
   ========================================================= */

.auth-card .alert-danger {
    text-align: left;
    border-radius: 10px;
    padding: 12px 14px;
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

/* =========================================================
   Logout-Karte (nutzt weiterhin .logout-card + .auth-card zusammen)
   ========================================================= */

.auth-card.logout-card {
    padding: 44px 32px;
}

.auth-icon-success {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #e8f7ee;
    color: #2fb344;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 480px) {
    .auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 32px 22px;
        border-radius: 14px;
    }

    .auth-title {
        font-size: 1.3rem;
    }
}

/* =========================================================
   Dark Mode (falls die Seite theme-fähig eingebunden wird)
   ========================================================= */

body.dark .auth-page {
    background: linear-gradient(160deg, #1a1a1a 0%, #111111 100%);
}

body.dark .auth-card {
    background-color: #202020;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.dark .auth-title {
    color: #eaeaea;
}

body.dark .auth-subtitle {
    color: #a0a0a0;
}

body.dark .auth-card .form-label {
    color: #eaeaea;
}

body.dark .auth-card .form-control {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
    color: #eaeaea;
}

body.dark .auth-card .alert-danger {
    background-color: #4a1f1f;
    border-color: #6a2a2a;
    color: #f2dede;
}
