/* shared/css/anmeldung.css
   Die Seiten ausserhalb der Sitzung: login.php und passwort.php.

   Bis zum 06.09.2026 trug login.php diese Regeln als <style> im Kopf, und
   admin.php hatte dieselben noch einmal als .admin-login-* in admin.css.
   Seit es eine Anmeldung fuer alle Konten gibt, ist admin.php kein
   Anmeldeformular mehr; passwort.php kam dazu und braucht dieselbe Karte.
   Deshalb einmal hier. Die Seiten sind bewusst immer dunkel-hell (Slate
   hinter weisser Karte) und folgen nicht dem Thema - vor der Anmeldung gibt
   es keine Einstellung, die man uebernehmen koennte. */

body.anmeldung {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; margin: 0; padding: 20px; box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    position: relative; overflow-x: hidden;
}

/* Ambiente-Licht hinter der Karte */
.ambient-glow-1 {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(15,23,42,0) 70%);
    top: -150px; left: -150px; border-radius: 50%; z-index: 0; pointer-events: none;
}
.ambient-glow-2 {
    position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, rgba(15,23,42,0) 70%);
    bottom: -100px; right: -100px; border-radius: 50%; z-index: 0; pointer-events: none;
}

.login-card {
    background: #FFFFFF; padding: 48px 40px; border-radius: 24px;
    width: 100%; max-width: 440px; z-index: 1; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.1);
}

.login-header { text-align: center; margin-bottom: 28px; }

/* Die volle Wortmarke aus dem Markenpaket (web/img/atrium-logo.png), mit
   Unterzeile COMCAVE.COLLEGE - hier ist sie gross genug dafuer. Fehlt die
   Datei, springt das onerror im <img> auf das Ersatzzeichen um. */
.login-logo {
    max-height: 60px; max-width: 240px; margin: 0 auto 16px auto; display: block;
    object-fit: contain;
}
.login-fallback-logo {
    display: none; width: 64px; height: 64px; background: rgba(59, 130, 246, 0.1);
    border-radius: 16px; align-items: center; justify-content: center; margin: 0 auto 16px auto;
}

.login-header h1 { font-size: 24px; font-weight: 900; color: #0F172A; margin: 0; letter-spacing: -0.5px; }
.login-header p  { font-size: 14px; font-weight: 500; color: #64748B; margin: 6px 0 0 0; overflow-wrap: anywhere; }

.login-form { display: flex; flex-direction: column; gap: 20px; }

.login-note {
    background: #F1F5F9; border-radius: 12px; padding: 12px 16px;
    font-size: 13px; font-weight: 500; color: #334155; line-height: 1.5;
    margin-bottom: 20px;
}

.error-msg {
    background-color: #FEF2F2; color: #DC2626; padding: 14px 16px;
    border-radius: 12px; font-weight: 600; margin-bottom: 24px; font-size: 13px;
    border-left: 4px solid #DC2626; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.05);
}
.error-msg svg { flex-shrink: 0; }

.form-group label {
    font-size: 12px; font-weight: 800; color: #475569; display: block; margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.custom-input {
    width: 100%; height: 52px; border: 1px solid #CBD5E1; border-radius: 12px;
    padding: 0 16px; font-family: inherit; font-size: 15px; font-weight: 600;
    background: #F8FAFC; outline: none; box-sizing: border-box; color: #0F172A;
    transition: all 0.2s;
}
.custom-input:focus {
    background: #FFFFFF; border-color: #3B82F6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.btn-submit {
    width: 100%; height: 52px; margin-top: 4px; font-weight: 800; background: #2563EB;
    color: white; border-radius: 12px; border: none; font-size: 15px; cursor: pointer;
    font-family: inherit;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3); transition: all 0.2s;
}
.btn-submit:hover  { background: #1D4ED8; transform: translateY(-2px); box-shadow: 0 15px 20px -3px rgba(37, 99, 235, 0.4); }
.btn-submit:active { transform: translateY(0); }

.login-hinweis {
    text-align: center; margin-top: 4px;
    font-size: 12px; font-weight: 600; color: #64748B; line-height: 1.7;
}
.login-hinweis a { color: #64748B; text-decoration: none; border-bottom: 1px solid #CBD5E1; transition: color 0.2s; }
.login-hinweis a:hover { color: #0F172A; }

/* Auswahlseite (auswahl.php): ein Knopf je Zugang, darunter der Einblick. */
.login-card-breit { max-width: 520px; }
.zugang-liste { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.zugang-knopf {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    width: 100%; padding: 14px 18px; text-align: left; cursor: pointer;
    background: #F8FAFC; border: 1px solid #CBD5E1; border-radius: 12px;
    font-family: inherit; color: #0F172A; transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.zugang-knopf:hover { background: #FFFFFF; border-color: #3B82F6; transform: translateY(-1px); }
.zugang-knopf:focus-visible { outline: none; border-color: #3B82F6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }
.zugang-knopf.aktuell { border-color: #10B981; background: #ECFDF5; }
.zugang-titel { font-size: 15px; font-weight: 800; }
.zugang-neben { font-size: 12px; font-weight: 600; color: #64748B; }
.einblick-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid #E2E8F0; }
.einblick-form select.custom-input { padding-right: 36px; }
.btn-submit-neben { background: #0F172A; box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.3); }
.btn-submit-neben:hover { background: #1E293B; box-shadow: 0 15px 20px -3px rgba(15, 23, 42, 0.4); }
