/* ═══════════════════════════════════════════════════════════════
   Auth pages — Luxe ONE-CARD redesign
   Login, Register, ChangePassword, ForgotPassword, ResetPassword,
   ConfirmEmail. Scoped to .page-auth. site.css NOT modified.
   =══════════════════════════════════════════════════════════════ */

/* ── Page backdrop ── */
.page-auth {
    background:
        radial-gradient(at 18% 12%, rgba(124, 58, 237, .25), transparent 55%),
        radial-gradient(at 82% 88%, rgba(236, 72, 153, .18), transparent 55%),
        radial-gradient(at 50% 50%, rgba(56, 189, 248, .08), transparent 70%),
        #050410;
    min-height: 100vh;
}

.page-auth::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════
   THE BIG OUTER CARD  ( = .auth-split )
   Both panels live inside this single luxe container.
   =══════════════════════════════════════════════════════════════ */
.page-auth .auth-split {
    position: relative;
    z-index: 1;
    min-height: auto;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    max-width: 1240px;
    margin: 3.5rem auto;
    padding: 0;
    background:
        radial-gradient(at 88% 6%, rgba(167, 139, 250, .14), transparent 55%),
        radial-gradient(at 12% 94%, rgba(236, 72, 153, .10), transparent 55%),
        linear-gradient(160deg, rgba(22, 14, 42, .92) 0%, rgba(11, 8, 24, .94) 100%);
    border-radius: 32px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 255, 255, .03) inset;
    /* Animated gradient border via mask trick */
    isolation: isolate;
}

/* Glowing gradient border (sits on top, behind content) */
.page-auth .auth-split::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 1.5px;
    background: linear-gradient(135deg,
            rgba(167, 139, 250, .55) 0%,
            rgba(236, 72, 153, .35) 35%,
            rgba(56, 189, 248, .35) 70%,
            rgba(167, 139, 250, .55) 100%);
    background-size: 200% 200%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: authBorderShift 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes authBorderShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Soft glow behind the card (outer halo) */
.page-auth .auth-split::after {
    content: '';
    position: absolute;
    inset: -60px;
    border-radius: 60px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, .25), transparent 65%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

/* Subtle vertical divider between the two halves */
.page-auth .auth-split-right {
    position: relative;
}

.page-auth .auth-split-right::after {
    content: '';
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(167, 139, 250, .35), transparent);
    pointer-events: none;
    z-index: 2;
}

/* ═══ LEFT PANEL (inside the big card) ═══ */
.page-auth .auth-split-left {
    position: relative;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 3rem 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: none;
}

/* Sparkle stars top-right of left panel */
.page-auth .auth-split-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 320px;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .85) 1px, transparent 1.5px),
        radial-gradient(circle at 70% 25%, rgba(255, 255, 255, .9) 1.5px, transparent 2px),
        radial-gradient(circle at 55% 60%, rgba(196, 181, 253, .7) 1px, transparent 1.5px),
        radial-gradient(circle at 80% 75%, rgba(255, 255, 255, .6) 1px, transparent 1.5px),
        radial-gradient(circle at 25% 80%, rgba(196, 181, 253, .5) 1px, transparent 1.5px),
        radial-gradient(circle at 90% 50%, rgba(255, 255, 255, .8) 1.5px, transparent 2px),
        radial-gradient(circle at 40% 15%, rgba(167, 139, 250, .6) 1px, transparent 1.5px),
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, .55) 1px, transparent 1.5px);
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, .55));
    pointer-events: none;
    opacity: .85;
    animation: authSparkle 6s ease-in-out infinite alternate;
}

@keyframes authSparkle {
    0% {
        opacity: .55;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.06);
    }
}

/* Floating glow blobs */
.page-auth .auth-blob--1 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(167, 139, 250, .55), transparent 65%);
    top: -15%;
    left: -15%;
    filter: blur(110px);
    animation: authBlob 22s ease-in-out infinite;
}

.page-auth .auth-blob--2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(236, 72, 153, .42), transparent 65%);
    bottom: -18%;
    left: 10%;
    filter: blur(100px);
    animation: authBlob 22s ease-in-out infinite -8s;
}

.page-auth .auth-blob--3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(56, 189, 248, .25), transparent 65%);
    top: 35%;
    right: -10%;
    filter: blur(80px);
    animation: authBlob 22s ease-in-out infinite -14s;
}

@keyframes authBlob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 20px) scale(.98);
    }
}

/* Left content */
.page-auth .auth-split-left-content {
    max-width: 460px;
    width: 100%;
    z-index: 1;
}

/* Brand pill */
.page-auth .auth-brand {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .95rem .5rem .65rem;
    background: linear-gradient(135deg, rgba(167, 139, 250, .18), rgba(255, 255, 255, .04));
    border: 1px solid rgba(167, 139, 250, .3);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, .2);
    color: #fff;
}

.page-auth .auth-brand::before {
    content: '✦';
    color: #c4b5fd;
    font-size: .95rem;
    text-shadow: 0 0 12px rgba(167, 139, 250, .9);
}

.page-auth .auth-brand span {
    color: #c4b5fd;
}

/* Decorative kicker above the title */
.page-auth .auth-left-text {
    margin-bottom: 2.25rem;
    position: relative;
}

.page-auth .auth-left-text::before {
    content: '✦  Stilin kainatını kəşf et';
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #c4b5fd;
    padding: .42rem .9rem;
    background: linear-gradient(135deg, rgba(167, 139, 250, .14), rgba(236, 72, 153, .08));
    border: 1px solid rgba(167, 139, 250, .28);
    border-radius: 999px;
    margin-bottom: 1.1rem;
    box-shadow: 0 0 18px rgba(124, 58, 237, .15);
}

/* Big title */
.page-auth .auth-left-title {
    font-size: clamp(1.95rem, 3.4vw, 2.85rem);
    line-height: 1.1;
    letter-spacing: -.035em;
    margin: 0 0 1rem;
    color: #fff;
    text-shadow: 0 4px 30px rgba(124, 58, 237, .25);
}

.page-auth .auth-left-accent {
    background: linear-gradient(135deg, #f0abfc 0%, #c4b5fd 35%, #818cf8 70%, #a78bfa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: authGradientText 6s ease-in-out infinite;
}

@keyframes authGradientText {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.page-auth .auth-left-sub {
    font-size: .95rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0;
    max-width: 42ch;
}

/* Feature rows */
.page-auth .auth-left-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-auth .auth-left-feat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border: 0;
    color: #e2e8f0;
    font-size: .95rem;
    font-weight: 600;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1);
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.page-auth .auth-left-feat:hover {
    transform: translateX(4px);
    background: transparent;
    border: 0;
}

.page-auth .auth-left-feat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    border-radius: 14px;
    box-shadow:
        0 8px 22px rgba(124, 58, 237, .42),
        inset 0 1px 0 rgba(255, 255, 255, .25);
    color: #fff;
}

/* ═══ RIGHT PANEL (inside the big card) ═══ */
.page-auth .auth-split-right {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 3rem 2.75rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: none;
}

.page-auth .auth-split-right::before {
    width: 500px;
    height: 500px;
    top: -25%;
    right: -25%;
    background: radial-gradient(circle, rgba(124, 58, 237, .14), transparent 60%);
    animation: authPanelGlow 10s ease-in-out infinite;
}

@keyframes authPanelGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: .8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.page-auth .auth-form-wrap {
    max-width: 420px;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    z-index: 1;
}

/* Kicker */
.page-auth .auth-form-kicker {
    background: linear-gradient(135deg, rgba(167, 139, 250, .16), rgba(236, 72, 153, .08));
    border: 1px solid rgba(167, 139, 250, .3);
    color: #c4b5fd;
    box-shadow: 0 0 20px rgba(124, 58, 237, .12);
    font-size: .68rem;
}

.page-auth .auth-form-kicker-dot {
    background: #c4b5fd;
    box-shadow: 0 0 10px #a78bfa;
}

/* Title */
.page-auth .auth-form-header {
    margin-bottom: 1.75rem;
}

.page-auth .auth-form-title {
    font-size: 2.05rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 .45rem;
    letter-spacing: -.025em;
}

.page-auth .auth-form-sub {
    color: #94a3b8;
    font-size: .92rem;
}

/* Inputs */
.page-auth .auth-label {
    color: #e2e8f0;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: none;
    margin-bottom: .4rem;
    display: block;
}

.page-auth .auth-field {
    margin-bottom: 1.1rem;
}

.page-auth .auth-input-wrap {
    position: relative;
}

.page-auth .auth-input {
    background: rgba(13, 10, 24, .65);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #f1f5f9;
    padding: .95rem 1rem .95rem 2.7rem;
    border-radius: 14px;
    font-size: .95rem;
    transition: all .25s cubic-bezier(.16, 1, .3, 1);
    width: 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.page-auth .auth-input::placeholder {
    color: #64748b;
}

.page-auth .auth-input:hover {
    border-color: rgba(167, 139, 250, .25);
}

.page-auth .auth-input:focus {
    outline: none;
    border-color: rgba(167, 139, 250, .55);
    background: rgba(13, 10, 24, .85);
    box-shadow:
        0 0 0 4px rgba(167, 139, 250, .12),
        0 0 24px rgba(124, 58, 237, .15);
}

.page-auth .auth-input-icon {
    color: #a78bfa;
    filter: drop-shadow(0 0 4px rgba(167, 139, 250, .55));
    left: .9rem;
}

.page-auth .auth-pw-toggle {
    color: #94a3b8;
}

.page-auth .auth-pw-toggle:hover {
    color: #c4b5fd;
}

/* Submit */
.page-auth .auth-submit {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c026d3 100%);
    background-size: 200% 200%;
    border: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: .015em;
    padding: 1.05rem 1.25rem;
    border-radius: 14px;
    box-shadow:
        0 14px 36px rgba(124, 58, 237, .45),
        inset 0 1px 0 rgba(255, 255, 255, .15);
    cursor: pointer;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s, background-position .5s;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.page-auth .auth-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .7s ease;
}

.page-auth .auth-submit:hover {
    transform: translateY(-2px);
    background-position: 100% 100%;
    box-shadow:
        0 22px 50px rgba(124, 58, 237, .58),
        inset 0 1px 0 rgba(255, 255, 255, .2);
}

.page-auth .auth-submit:hover::after {
    transform: translateX(100%);
}

.page-auth .auth-submit:active {
    transform: translateY(0);
}

/* Divider */
.page-auth .auth-divider {
    color: #64748b;
    font-size: .72rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin: 1.25rem 0;
}

.page-auth .auth-divider::before,
.page-auth .auth-divider::after {
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .25), transparent);
}

/* Google button */
.page-auth .auth-google-btn {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #e2e8f0;
    border-radius: 14px;
    padding: .9rem 1rem;
    transition: all .25s cubic-bezier(.16, 1, .3, 1);
}

.page-auth .auth-google-btn:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(167, 139, 250, .3);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

/* Forgot / switch links */
.page-auth .auth-forgot {
    margin-top: .5rem;
}

.page-auth .auth-forgot a,
.page-auth .auth-switch a {
    color: #c4b5fd;
    font-weight: 600;
    transition: color .2s;
}

.page-auth .auth-forgot a:hover,
.page-auth .auth-switch a:hover {
    color: #f0abfc;
}

.page-auth .auth-switch {
    margin-top: 1rem;
    color: #94a3b8;
}

/* Back home */
.page-auth .auth-back-home {
    color: #64748b;
    transition: color .2s, transform .2s;
}

.page-auth .auth-back-home:hover {
    color: #c4b5fd;
    transform: translateX(-3px);
}

/* Suspended banner */
.page-auth .auth-suspended {
    background: linear-gradient(135deg, rgba(239, 68, 68, .12), rgba(236, 72, 153, .08));
    border: 1px solid rgba(239, 68, 68, .3);
    border-radius: 14px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .page-auth .auth-split {
        grid-template-columns: 1fr;
        margin: 1rem;
        max-width: none;
    }

    .page-auth .auth-split-left {
        display: none;
    }

    .page-auth .auth-split-right {
        padding: 2.25rem 1.5rem;
    }

    .page-auth .auth-split-right::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-auth .auth-split {
        margin: .75rem;
        border-radius: 24px;
    }

    .page-auth .auth-split::before {
        border-radius: 24px;
    }

    .page-auth .auth-split-right {
        padding: 1.75rem 1.1rem;
    }

    .page-auth .auth-form-title {
        font-size: 1.6rem;
    }
}