/* Step 77 - Auth UI: Login, Registrierung, Passwort-Reset */

.auth-page-shell {
    width: min(1180px, 94vw);
    min-height: 72vh;
    margin: 8vh auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 22px;
    align-items: stretch;
}

.auth-brand-card,
.auth-login-box {
    border-radius: 26px;
    border: 1px solid rgba(94, 184, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(6, 18, 34, 0.88), rgba(2, 8, 17, 0.96)),
        radial-gradient(circle at 18% 16%, rgba(76, 169, 255, 0.18), transparent 40%);
    box-shadow: 0 0 34px rgba(45, 158, 255, 0.18), inset 0 0 28px rgba(94, 184, 255, 0.05);
}

.auth-brand-card {
    position: relative;
    min-height: 520px;
    padding: 42px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.14)),
        url("images/backgrounds/bundesliga-dashboard-main-bg.png") center/cover no-repeat;
    opacity: 0.72;
    z-index: 0;
}

.auth-brand-card::after {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(82, 190, 255, 0.95), rgba(255, 95, 72, 0.72), transparent);
    box-shadow: 0 0 16px rgba(66, 170, 255, 0.58);
    z-index: 1;
}

.auth-brand-card > * {
    position: relative;
    z-index: 2;
}

.auth-brand-kicker {
    display: inline-flex;
    width: fit-content;
    min-height: 32px;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(122, 205, 255, 0.34);
    background: rgba(5, 16, 31, 0.62);
    color: rgba(210, 236, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-brand-card h1 {
    margin: 0;
    font-size: clamp(2.35rem, 4vw, 4.9rem);
    line-height: 0.96;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f4f9ff;
    text-shadow: 0 0 18px rgba(66, 170, 255, 0.72), 0 4px 18px rgba(0, 0, 0, 0.85);
    text-align: center;
}

.auth-brand-card .auth-brand-kicker,
.auth-brand-card p,
.auth-feature-list {
    display: none;
}

.auth-brand-card p {
    max-width: 560px;
    margin: 0;
    color: rgba(224, 239, 255, 0.82);
    font-size: 1.05rem;
    font-weight: 800;
}

.auth-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-bottom: 24px;
}

.auth-feature-list span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(94, 184, 255, 0.24);
    background: rgba(4, 14, 28, 0.72);
    color: rgba(235, 247, 255, 0.9);
    font-size: 0.84rem;
    font-weight: 900;
}

.auth-login-box {
    width: auto;
    margin: 0;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-login-box h2 {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 2rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-login-subline {
    margin: 0 0 22px;
    color: rgba(215, 232, 255, 0.76);
    font-weight: 800;
}

.auth-login-form-panel .admin-input {
    min-height: 50px;
    margin-bottom: 14px;
    font-size: 1rem;
}

.auth-login-primary-row .btn-primary {
    min-height: 48px;
    font-size: 1rem;
}

.auth-login-link-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.auth-login-link-row .login-reset-button {
    min-height: 44px;
}

.auth-legacy-note {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 202, 88, 0.18);
    background: rgba(255, 202, 88, 0.07);
    color: rgba(240, 228, 196, 0.78);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.35;
}

.auth-modal-content {
    width: min(760px, 94vw);
    max-height: min(86vh, 860px);
    overflow: auto;
    padding: 26px;
    box-shadow: 0 0 32px rgba(42, 166, 255, 0.24), inset 0 0 18px rgba(71, 176, 255, 0.06);
}

.auth-password-reset-modal-content {
    width: min(520px, 94vw);
}

.auth-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.auth-modal-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
}

.auth-modal-head p {
    margin: 5px 0 0;
    color: rgba(218, 234, 255, 0.72);
    font-weight: 800;
}

.auth-modal-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    border: 1px solid rgba(116, 198, 255, 0.34);
    background: rgba(3, 12, 24, 0.72);
    color: rgba(236, 247, 255, 0.96);
    font-size: 1.35rem;
    font-weight: 950;
    cursor: pointer;
}

.auth-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-field-full {
    grid-column: 1 / -1;
}

.auth-field label {
    display: block;
    margin: 0 0 6px;
    color: rgba(224, 240, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 900;
}

.auth-field .admin-input {
    margin-bottom: 0;
}

.auth-password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.auth-password-rules span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 118, 118, 0.28);
    background: rgba(96, 12, 22, 0.14);
    color: rgba(255, 214, 214, 0.82);
    font-size: 0.76rem;
    font-weight: 900;
}

.auth-password-rules span::before {
    content: "×";
    margin-right: 6px;
    font-weight: 950;
}

.auth-password-rules span.is-valid {
    border-color: rgba(78, 220, 129, 0.42);
    background: rgba(37, 168, 88, 0.12);
    color: rgba(205, 255, 222, 0.92);
}

.auth-password-rules span.is-valid::before {
    content: "✓";
}


.auth-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.auth-modal-actions .btn-primary,
.auth-modal-actions .btn-secondary {
    min-width: 150px;
    min-height: 42px;
}

@media (max-width: 980px) {
    .auth-page-shell {
        grid-template-columns: 1fr;
        margin-top: 4vh;
    }

    .auth-brand-card {
        min-height: 320px;
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .auth-page-shell {
        width: 94vw;
    }

    .auth-login-box {
        padding: 24px;
    }

    .auth-login-link-row,
    .auth-field-grid {
        grid-template-columns: 1fr;
    }
}
