/* =============================================================================
 *  Glas-Optik für Anmeldung und Zwei-Faktor-Seite
 *  Pfad: /Design/assets/css/login-glas.css
 *
 *  Eingebunden nach den Seitenstilen von pages/sign-in-cover.php und
 *  pages/two-step-verification-cover.php und überschreibt dort nur das Aussehen.
 *  Wie Kopfzeile und Seitenmenü: farbiges Licht im Hintergrund, darüber
 *  durchscheinende Flächen mit Glanzkante und Lichtrand – ohne Animation.
 * ============================================================================= */

/* Hintergrund: zarte Farbflächen, damit das Glas etwas zum Durchscheinen hat */
.m24s-left {
    background:
        radial-gradient(420px 420px at 14% 18%, rgba(10, 132, 255, 0.24), transparent 65%),
        radial-gradient(440px 440px at 90% 12%, rgba(139, 92, 246, 0.19), transparent 65%),
        radial-gradient(480px 480px at 22% 92%, rgba(20, 184, 166, 0.16), transparent 65%),
        radial-gradient(360px 360px at 88% 88%, rgba(236, 72, 153, 0.08), transparent 65%),
        linear-gradient(135deg, #f4f8ff 0%, #f6f5ff 52%, #f5fbff 100%) !important;
}

.m24s-left::before {
    opacity: 0.7;
}

/* Fester, weicher Lichtfleck unten links (ohne Bewegung) */
.m24s-left::after {
    width: 520px;
    height: 520px;
    left: -180px;
    bottom: -220px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.20), rgba(139, 92, 246, 0.06) 50%, transparent 70%);
    filter: blur(10px);
}

/* Karte aus Glas */
.m24s-login-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0.40) 55%, rgba(255, 255, 255, 0.52) 100%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        inset 0 1px 1px #ffffff,
        inset 0 -1px 1px rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(15, 23, 42, 0.05),
        0 24px 60px rgba(31, 41, 90, 0.15);
}

/* Rand aus Licht: oben links hell, sonst kaum sichtbar */
.m24s-login-card::before {
    background: linear-gradient(
        150deg,
        rgba(255, 255, 255, 1),
        rgba(255, 255, 255, 0.25) 40%,
        rgba(10, 132, 255, 0.32) 80%,
        rgba(139, 92, 246, 0.28)
    );
}

/* Leichter Glanz auf der oberen Hälfte statt des Rings oben rechts */
.m24s-login-card::after {
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 44%);
}

.m24s-login-title {
    background: linear-gradient(120deg, #0f172a 20%, #0a5ce0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.m24s-login-subtitle {
    color: #475569;
}

/* Eingabefelder, Rollen und Code-Felder als kleine Glasflächen */
.m24s-login-card .form-control,
.m24s-role-option,
.m24s-code-input {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.05),
        0 0 0 1px rgba(15, 23, 42, 0.07);
}

.m24s-login-card .form-control:hover,
.m24s-role-option:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: none;
}

.m24s-login-card .form-control:focus,
.m24s-code-input:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow:
        0 0 0 1px rgba(10, 132, 255, 0.5),
        0 0 0 4px rgba(10, 132, 255, 0.12) !important;
}

/* Gewählte Rolle: blau getönt */
.m24s-role-option:has(input:checked) {
    background: rgba(10, 132, 255, 0.08) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(10, 132, 255, 0.4);
    color: #0b4fd6;
}

/* Login-Knopf aus blauem Glas mit weißer Schrift, ruhig: Glanzkante oben, kein Leuchten */
.m24s-login-card .btn-primary {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(120% 140% at 50% 120%, rgba(140, 205, 255, 0.30), transparent 60%),
        linear-gradient(135deg, rgba(38, 118, 255, 0.90) 0%, rgba(10, 96, 235, 0.92) 60%, rgba(80, 80, 230, 0.90) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.65),
        inset 0 -2px 5px rgba(0, 30, 120, 0.16),
        0 0 0 1px rgba(10, 96, 235, 0.25),
        0 10px 22px rgba(10, 96, 235, 0.24),
        0 0 22px rgba(80, 80, 230, 0.12);
    transition: box-shadow 0.2s ease, filter 0.2s ease;
}
.m24s-login-card .btn-primary:hover {
    transform: none;
    filter: brightness(1.05);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        0 0 0 1px rgba(10, 96, 235, 0.3),
        0 10px 22px rgba(10, 96, 235, 0.26);
}
.m24s-login-card .btn-primary:active {
    filter: brightness(0.97);
}
.m24s-login-card .btn-primary:focus-visible {
    outline: none;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.55),
        0 0 0 4px rgba(10, 132, 255, 0.28);
}

/* Trennlinie ohne Inhalt darunter: weg, damit die Karte unten nicht leer wirkt */
.m24s-login-card hr {
    display: none;
}
.m24s-login-card .card-body {
    padding-bottom: 2.6rem !important;
}

/* Hinweise und Meldungen */
.m24s-login-card .alert,
.m24s-warning {
    border-radius: 14px;
}

/* Bild rechts: bleibt vollflächig und scharf, darüber nur ein Hauch Glas –
   Glanz von oben links und eine Lichtkante zur Login-Hälfte */
.m24s-cover-link {
    position: relative;
}
.m24s-cover-link::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 28%, rgba(255, 255, 255, 0) 45%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 6%);
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
