/* =========================================================
   BIRDLY — AUTH VISUAL REFRESH v0.7.2
   Prostszy, nowocześniejszy wygląd z tłem fotograficznym.
========================================================= */

.nightside-auth {
    --auth-bg: #040913;
    --auth-bg-2: #08111f;
    --auth-surface: rgba(7, 16, 29, .95);
    --auth-surface-2: rgba(8, 18, 33, .96);
    --auth-line: rgba(55, 206, 255, .16);
    --auth-line-strong: rgba(34, 220, 255, .42);
    --auth-text: #eef5ff;
    --auth-muted: #8c9ebb;
    --auth-cyan: #22dcff;
    --auth-blue: #6e5bff;
    --auth-purple: #b64dff;
    --auth-danger: #ff5c72;
    --auth-success: #40d08a;
    --auth-glow: 0 0 34px rgba(34, 220, 255, .10);

    min-height: 100vh;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 74% -8%, rgba(34, 220, 255, .10), transparent 26%),
        radial-gradient(circle at 8% 90%, rgba(110, 91, 255, .08), transparent 24%),
        linear-gradient(180deg, #040913, #050b15 30%, #040912 100%);
    overflow-x: hidden;
}

.nightside-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(34, 220, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 91, 255, .014) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.nightside-auth .auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    grid-template-columns: minmax(560px, 1.18fr) minmax(420px, .82fr);
    background: transparent;
}

.nightside-auth .auth-brand-panel {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    padding: 42px clamp(42px, 4vw, 72px);
    color: var(--auth-text);
    border-right: 1px solid rgba(55, 206, 255, .10);
    background:
        linear-gradient(90deg, rgba(3, 10, 20, .94) 0%, rgba(4, 13, 24, .86) 36%, rgba(4, 13, 24, .58) 62%, rgba(4, 10, 19, .84) 100%),
        linear-gradient(180deg, rgba(2, 8, 16, .18), rgba(2, 8, 16, .58)),
        url('../img/auth-community-bg.jpg') center center / cover no-repeat;
}

.nightside-auth .auth-brand-panel::before,
.nightside-auth .auth-brand-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.nightside-auth .auth-brand-panel::before {
    inset: 0;
    background:
        radial-gradient(circle at 72% 14%, rgba(34, 220, 255, .18), transparent 18%),
        radial-gradient(circle at 86% 18%, rgba(110, 91, 255, .18), transparent 16%),
        radial-gradient(circle at 46% 100%, rgba(13, 23, 42, .72), transparent 30%);
    z-index: -1;
}

.nightside-auth .auth-brand-panel::after {
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 8, 16, .05), rgba(2, 8, 16, .32) 46%, rgba(2, 8, 16, .76) 100%);
    z-index: -1;
}

.nightside-auth .auth-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f7fbff;
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -1px;
}

.nightside-auth .auth-brand .brand-mark,
.nightside-auth .mobile-auth-logo {
    background: linear-gradient(145deg, #22dcff, #6e5bff 68%);
    color: #03101c;
    box-shadow: 0 0 0 1px rgba(34, 220, 255, .18), 0 0 28px rgba(34, 220, 255, .16);
}

.nightside-auth .auth-brand-copy {
    position: relative;
    z-index: 2;
    width: min(600px, 100%);
    margin-top: clamp(120px, 18vh, 200px);
}

.nightside-auth .auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--auth-cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .20em;
    text-transform: uppercase;
}

.nightside-auth .auth-kicker::before {
    content: "";
    width: 40px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--auth-cyan), rgba(34, 220, 255, 0));
    box-shadow: 0 0 14px rgba(34, 220, 255, .45);
}

.nightside-auth .auth-brand-copy h1 {
    margin: 0;
    max-width: 700px;
    color: #f5f9ff;
    font-size: clamp(52px, 5.2vw, 80px);
    line-height: .96;
    letter-spacing: -3.8px;
    text-wrap: balance;
}

.nightside-auth .auth-brand-copy h1::after {
    content: "";
    display: block;
    width: 92px;
    height: 4px;
    margin-top: 24px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--auth-cyan), var(--auth-blue), var(--auth-purple));
    box-shadow: 0 0 22px rgba(34, 220, 255, .28);
}

.nightside-auth .auth-brand-copy p {
    max-width: 520px;
    margin: 22px 0 0;
    color: rgba(233, 242, 255, .82);
    font-size: 16px;
    line-height: 1.72;
}

.nightside-auth .auth-visual {
    position: absolute;
    z-index: 2;
    right: 48px;
    bottom: 38px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    opacity: .92;
}

.nightside-auth .auth-visual span {
    display: block;
    width: 5px;
    border-radius: 99px;
    background: rgba(93, 118, 180, .72);
    box-shadow: 0 0 14px rgba(34, 220, 255, .12);
}
.nightside-auth .auth-visual span:nth-child(1) { height: 18px; }
.nightside-auth .auth-visual span:nth-child(2) { height: 34px; background: var(--auth-cyan); }
.nightside-auth .auth-visual span:nth-child(3) { height: 12px; background: var(--auth-purple); }

.nightside-auth .auth-card {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 42px clamp(24px, 4vw, 72px);
    background:
        radial-gradient(circle at 82% 14%, rgba(34, 220, 255, .10), transparent 16%),
        radial-gradient(circle at 92% 100%, rgba(110, 91, 255, .10), transparent 18%),
        linear-gradient(180deg, rgba(3, 10, 19, .88), rgba(3, 9, 17, .98));
}

.nightside-auth .auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.03) 0, rgba(255,255,255,0) 1px) 0 0/1px 100%;
    opacity: .08;
    pointer-events: none;
}

.nightside-auth .auth-card-inner {
    position: relative;
    z-index: 2;
    width: min(470px, 100%);
    padding: 34px 36px;
    border: 1px solid rgba(55, 206, 255, .16);
    border-radius: 24px;
    color: var(--auth-text);
    background:
        linear-gradient(180deg, rgba(8, 18, 33, .97), rgba(6, 14, 27, .95));
    box-shadow:
        0 28px 72px rgba(0, 0, 0, .34),
        inset 0 1px 0 rgba(255,255,255,.03),
        0 0 0 1px rgba(34, 220, 255, .03),
        var(--auth-glow);
    backdrop-filter: blur(18px);
}

.nightside-auth .auth-card-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(34, 220, 255, .24), rgba(110, 91, 255, .18), rgba(255,255,255,.04));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.nightside-auth .auth-heading {
    margin-bottom: 25px;
}

.nightside-auth .auth-heading h2 {
    margin: 0;
    color: #f4f8ff;
    font-size: 31px;
    letter-spacing: -1.2px;
}

.nightside-auth .auth-heading p {
    margin: 10px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.6;
}

.nightside-auth .auth-form { gap: 16px; }
.nightside-auth .auth-form label { display: grid; gap: 8px; }

.nightside-auth .auth-form label > span {
    color: #d4def0;
    font-size: 12px;
    font-weight: 700;
}

.nightside-auth .auth-form label small {
    color: #7f91ad;
    font-size: 11px;
    line-height: 1.45;
}

.nightside-auth .auth-form input {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(55, 206, 255, .14);
    border-radius: 12px;
    outline: 0;
    padding: 0 16px;
    background: rgba(9, 20, 36, .88);
    color: #edf5ff;
    caret-color: var(--auth-cyan);
    box-shadow: inset 0 1px 12px rgba(0, 0, 0, .22);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.nightside-auth .auth-form input::placeholder { color: #7183a0; }

.nightside-auth .auth-form input:focus {
    border-color: var(--auth-line-strong);
    background: rgba(10, 24, 42, .92);
    box-shadow: 0 0 0 3px rgba(34, 220, 255, .07), 0 0 18px rgba(34, 220, 255, .08);
}

.nightside-auth .input-prefix,
.nightside-auth .password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.nightside-auth .input-prefix b {
    position: absolute;
    z-index: 2;
    left: 15px;
    color: #8ea2bf;
    font-size: 17px;
}

.nightside-auth .input-prefix input { padding-left: 38px; }
.nightside-auth .password-field input { padding-right: 86px; }

.nightside-auth .password-field button {
    position: absolute;
    right: 8px;
    height: 36px;
    padding: 0 11px;
    border-radius: 9px;
    border: 1px solid rgba(55, 206, 255, .12);
    background: rgba(16, 32, 55, .92);
    color: #96afcc;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.nightside-auth .password-field button:hover {
    color: #ecf4ff;
    border-color: rgba(34, 220, 255, .26);
    background: rgba(18, 38, 64, .98);
}

.nightside-auth .auth-submit {
    height: 52px;
    margin-top: 4px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(135deg, var(--auth-cyan), #2bbaf2 56%, #5f7dff 100%);
    color: #03101c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 850;
    box-shadow: 0 14px 34px rgba(34, 220, 255, .16), 0 0 28px rgba(34, 220, 255, .08);
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.nightside-auth .auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 40px rgba(34, 220, 255, .20), 0 0 34px rgba(110, 91, 255, .10);
}

.nightside-auth .auth-submit span { font-size: 18px; }

.nightside-auth .auth-switch {
    margin: 22px 0 0;
    text-align: center;
    color: #7e91ad;
    font-size: 13px;
}

.nightside-auth .auth-switch a {
    color: var(--auth-cyan);
    font-weight: 800;
}

.nightside-auth .form-alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.nightside-auth .form-alert.error {
    border: 1px solid rgba(255, 92, 114, .34);
    background: rgba(82, 22, 38, .34);
    color: #ffb6c0;
}

.nightside-auth .form-alert.success {
    border: 1px solid rgba(64, 208, 138, .28);
    background: rgba(17, 67, 48, .28);
    color: #b8f5d2;
}

@media (max-width: 980px) {
    .nightside-auth .auth-shell {
        grid-template-columns: minmax(420px, 1fr) minmax(380px, .9fr);
    }

    .nightside-auth .auth-brand-copy h1 {
        font-size: clamp(44px, 5vw, 64px);
    }
}

@media (max-width: 860px) {
    .nightside-auth .auth-shell { grid-template-columns: 1fr; }
    .nightside-auth .auth-brand-panel { display: none; }
    .nightside-auth .auth-card {
        min-height: 100vh;
        padding: 22px;
        background:
            radial-gradient(circle at 85% 8%, rgba(34, 220, 255, .12), transparent 18%),
            radial-gradient(circle at 0% 100%, rgba(110, 91, 255, .10), transparent 22%),
            linear-gradient(180deg, #040913, #050b15 100%);
    }
    .nightside-auth .mobile-auth-logo {
        width: 46px;
        height: 46px;
        margin-bottom: 20px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        font-size: 22px;
        font-weight: 900;
        letter-spacing: -2px;
    }
}

@media (max-width: 520px) {
    .nightside-auth .auth-card { padding: 14px; }
    .nightside-auth .auth-card-inner {
        width: 100%;
        padding: 28px 22px;
        border-radius: 18px;
    }
    .nightside-auth .auth-heading h2 { font-size: 27px; }
    .nightside-auth .auth-heading p { font-size: 13px; }
    .nightside-auth .auth-form input { height: 48px; }
    .nightside-auth .auth-submit { height: 50px; }
}
