/* ============================================================
   Strony logowania/rejestracji/odzyskiwania hasła — styl "Lewe Skrzydło":
   pełnoekranowe tło z gry (T_MainMenu3 z ekranu logowania UE5) + gotycki
   panel formularza dokowany do lewej krawędzi.
   Ładowany wyłącznie przez strony Areas/Identity/Pages/Account/*.
   ============================================================ */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #0b0805;
}

body {
    overflow: hidden;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #e8e0d2;
}

/* layout owija treść w .dashboard-container > main.pb-3 — neutralizacja */
.dashboard-container {
    padding: 0 !important;
    margin: 0 !important;
}

main.pb-3 {
    padding: 0 !important;
}

/* ===== scena: tło z gry ===== */
.auth-scene {
    position: fixed;
    inset: 0;
    background: url("/images/login_bg.jpg") center / cover no-repeat #0b0805;
}

.auth-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(6, 3, 2, .94) 0%,
        rgba(6, 3, 2, .88) 24%,
        rgba(6, 3, 2, .42) 46%,
        rgba(6, 3, 2, 0) 64%);
}

/* ===== panel launchera (lewa kolumna) ===== */
.auth-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(430px, 100%);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(201, 163, 90, .35);
}

.auth-inner {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 46px;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 163, 90, .4) transparent;
}

.auth-logo {
    font-family: "Cinzel", "Segoe UI", serif;
    font-weight: 800;
    font-size: clamp(30px, 4.5vh, 40px);
    letter-spacing: .3em;
    color: #e4cf9e;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .9), 0 0 26px rgba(255, 96, 0, .35);
    white-space: nowrap;
}

.auth-orn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 28px;
    color: #c9a35a;
    font-size: 12px;
}

.auth-orn .line {
    height: 1px;
    flex: 0 0 150px;
    background: linear-gradient(90deg, rgba(201, 163, 90, .75), rgba(201, 163, 90, 0));
}

/* podtytuł strony (ZAŁÓŻ KONTO / ODZYSKIWANIE HASŁA...) */
.auth-sub {
    font-family: "Cinzel", "Segoe UI", serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #c9a35a;
    margin: -14px 0 20px;
}

.auth-hint {
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(232, 224, 210, .75);
    margin: 0 0 18px;
    max-width: 330px;
}

/* ===== formularz ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 330px;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #efe7d6;
    background: rgba(8, 5, 3, .72);
    border: 1px solid rgba(201, 163, 90, .5);
    border-radius: 2px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-input::placeholder {
    color: #8d8271;
}

.auth-input:focus {
    border-color: #e4cf9e;
    box-shadow: 0 0 12px rgba(201, 163, 90, .35);
    background: rgba(8, 5, 3, .85);
}

/* autofill Chrome — bez białego tła */
.auth-input:-webkit-autofill {
    -webkit-text-fill-color: #efe7d6;
    -webkit-box-shadow: 0 0 0 1000px #191009 inset;
    transition: background-color 9999s ease-in-out 0s;
}

/* checkbox "Zapamiętaj mnie" */
.auth-remember {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: rgba(232, 224, 210, .85);
    cursor: pointer;
    user-select: none;
    width: fit-content;
}

.auth-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-remember .box {
    width: 15px;
    height: 15px;
    border: 1px solid #c9a35a;
    border-radius: 2px;
    background: rgba(8, 5, 3, .6);
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    transition: box-shadow .15s ease;
}

.auth-remember input:checked + .box::after {
    content: "◆";
    font-size: 9px;
    line-height: 1;
    color: #e4cf9e;
    text-shadow: 0 0 6px rgba(255, 96, 0, .6);
}

.auth-remember input:focus-visible + .box {
    box-shadow: 0 0 10px rgba(201, 163, 90, .5);
}

.auth-remember:hover .box {
    box-shadow: 0 0 8px rgba(201, 163, 90, .35);
}

/* przycisk główny */
.auth-btn {
    margin-top: 6px;
    width: 100%;
    padding: 13px;
    font-family: "Cinzel", "Segoe UI", serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    color: #e4cf9e;
    background: linear-gradient(180deg, #6b181d, #3c0d10);
    border: 1px solid #c9a35a;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .55);
    transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}

.auth-btn:hover,
.auth-btn:focus-visible {
    background: linear-gradient(180deg, #7d1c22, #4a1013);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .55), 0 0 18px rgba(164, 35, 42, .45);
    color: #f4e3bb;
    outline: none;
}

.auth-btn:active {
    transform: translateY(1px);
}

/* linki pod formularzem */
.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-top: 4px;
    font-size: 13px;
    flex-wrap: wrap;
}

.auth-links a {
    color: rgba(232, 224, 210, .8);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 163, 90, .35);
    padding-bottom: 1px;
    transition: color .15s ease, border-color .15s ease;
}

.auth-links a:hover {
    color: #e4cf9e;
    border-bottom-color: #e4cf9e;
}

/* ===== walidacja ===== */
.auth-errors {
    display: none;
}

.auth-errors.validation-summary-errors {
    display: block;
    background: rgba(60, 13, 16, .55);
    border: 1px solid rgba(164, 35, 42, .65);
    color: #ffb3ab;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 2px;
}

.auth-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-field-error {
    color: #ff8d80;
    font-size: 12.5px;
    margin-top: -6px;
}

.auth-field-error:empty {
    display: none;
}

/* ===== rejestracja, krok 2: kod z e-maila ===== */
.auth-hint__strong {
    color: #e4cf9e;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* pole kodu: duże, rozstrzelone cyfry na środku */
.auth-input.auth-code {
    padding: 14px 10px 14px 22px;
    font-family: "Cinzel", "Segoe UI", serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .42em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #f0d48a;
}

.auth-input.auth-code::placeholder {
    color: rgba(141, 130, 113, .45);
}

/* potwierdzenie (np. "wysłaliśmy nowy kod") */
.auth-note {
    background: rgba(201, 163, 90, .10);
    border: 1px solid rgba(201, 163, 90, .5);
    color: #e4cf9e;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 2px;
}

/* drugi formularz pod głównym (ponowna wysyłka, linki) */
.auth-form--aside {
    margin-top: 14px;
}

/* przycisk drugorzędny */
.auth-btn.auth-btn--ghost {
    margin-top: 0;
    padding: 10px;
    font-size: 12px;
    letter-spacing: .16em;
    color: #c9a35a;
    background: transparent;
    border-color: rgba(201, 163, 90, .55);
    box-shadow: none;
}

.auth-btn.auth-btn--ghost:hover,
.auth-btn.auth-btn--ghost:focus-visible {
    color: #f4e3bb;
    background: rgba(201, 163, 90, .08);
    border-color: #c9a35a;
    box-shadow: none;
}

.auth-btn:disabled,
.auth-btn:disabled:hover {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.auth-links__note {
    color: rgba(232, 224, 210, .55);
}

/* komunikat (strony potwierdzeń) */
.auth-msg {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(232, 224, 210, .85);
    max-width: 330px;
    margin: 0 0 20px;
}

.auth-msg a {
    color: #e4cf9e;
}

/* ===== stopka panelu ===== */
.auth-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 46px 16px;
    font-size: 11.5px;
    letter-spacing: .14em;
    color: rgba(232, 224, 210, .6);
    border-top: 1px solid rgba(201, 163, 90, .18);
}

.auth-foot .srv .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3DFF77;
    box-shadow: 0 0 8px rgba(61, 255, 119, .6);
    display: inline-block;
    margin-right: 7px;
}

.auth-foot .srv b {
    color: #7dc47d;
    font-weight: 800;
}

/* ===== responsywność ===== */
@media (max-width: 640px) {
    .auth-panel {
        width: 100%;
        border-right: none;
    }

    .auth-shade {
        background: linear-gradient(180deg, rgba(6, 3, 2, .88), rgba(6, 3, 2, .74));
    }

    .auth-inner {
        padding: 36px 26px;
    }

    .auth-foot {
        padding: 12px 26px 14px;
    }
}

@media (max-height: 620px) {
    .auth-inner {
        justify-content: flex-start;
        padding-top: 26px;
    }
}
