/* MYROSTER PRO — Premium auth shell
   Scoped to .auth-premium; does not depend on wow/premier auth cards. */

:root {
    --ap-slate-950: #0c1222;
    --ap-slate-900: #121a2b;
    --ap-slate-800: #1a2438;
    --ap-slate-600: #4a5568;
    --ap-slate-500: #64748b;
    --ap-mist: #f4f6f9;
    --ap-panel: #ffffff;
    --ap-amber: #c9892d;
    --ap-amber-deep: #a86f1f;
    --ap-amber-soft: rgba(201, 137, 45, 0.14);
    --ap-border: rgba(18, 26, 43, 0.1);
    --ap-shadow: 0 24px 64px rgba(12, 18, 34, 0.18), 0 2px 8px rgba(12, 18, 34, 0.06);
    --ap-font-display: "Plus Jakarta Sans", "Manrope", sans-serif;
    --ap-font-ui: "Manrope", system-ui, sans-serif;
    --ap-radius: 18px;
    --ap-radius-sm: 12px;
}

.auth-premium {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--ap-font-ui);
    color: var(--ap-slate-900);
    background: var(--ap-slate-950);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth-premium *,
.auth-premium *::before,
.auth-premium *::after {
    box-sizing: border-box;
}

/* Atmosphere */
.auth-premium__stage {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 18% 30%, rgba(201, 137, 45, 0.22), transparent 58%),
        radial-gradient(ellipse 55% 45% at 88% 78%, rgba(90, 140, 160, 0.18), transparent 50%),
        radial-gradient(ellipse 40% 35% at 55% 10%, rgba(255, 255, 255, 0.06), transparent 55%),
        linear-gradient(155deg, #0c1222 0%, #151f33 42%, #1c2a3f 100%);
}

.auth-premium__stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
    animation: ap-grid-drift 28s linear infinite;
}

.auth-premium__stage::after {
    content: "";
    position: absolute;
    width: 55vmax;
    height: 55vmax;
    left: -12%;
    top: -18%;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 137, 45, 0.12), transparent 68%);
    animation: ap-glow-drift 18s ease-in-out infinite alternate;
}

.auth-premium__split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem;
    gap: 1.5rem;
    align-items: center;
}

/* Brand column */
.auth-premium__brand {
    text-align: center;
    color: #fff;
    padding: 0.5rem 0.25rem 0;
    animation: ap-brand-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-premium__mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    color: var(--ap-slate-950);
    background: linear-gradient(145deg, #e8b45a 0%, var(--ap-amber) 55%, var(--ap-amber-deep) 100%);
    box-shadow: 0 12px 28px rgba(201, 137, 45, 0.35);
}

.auth-premium__name {
    font-family: var(--ap-font-display);
    font-weight: 800;
    font-size: clamp(1.85rem, 5vw, 3.15rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
    color: #fff;
}

.auth-premium__tagline {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.01em;
}

.auth-premium__panel-title {
    display: none;
    font-family: var(--ap-font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: var(--ap-slate-900);
    margin: 0 0 0.35rem;
}

.auth-premium__panel-sub {
    display: none;
    font-size: 0.92rem;
    color: var(--ap-slate-500);
    margin: 0 0 1.35rem;
}

/* Form panel */
.auth-premium__panel {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--ap-panel);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow);
    padding: 1.5rem 1.35rem 1.65rem;
    animation: ap-panel-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.auth-premium__alert {
    border-radius: var(--ap-radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: none;
}

.auth-premium__alert--ok {
    background: #e8f6ee;
    color: #14532d;
}

.auth-premium__alert--err {
    background: #fdeceb;
    color: #7f1d1d;
}

/* Form controls */
.auth-premium .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ap-slate-800);
    margin-bottom: 0.4rem;
}

.auth-premium .input-group-text {
    background: var(--ap-mist);
    border: 1px solid var(--ap-border);
    border-right: 0;
    color: var(--ap-slate-500);
    border-radius: var(--ap-radius-sm) 0 0 var(--ap-radius-sm);
    padding-inline: 0.85rem;
}

.auth-premium .form-control {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    background: #fff;
    color: var(--ap-slate-900);
    font-size: 1rem;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
    box-shadow: none;
}

.auth-premium .input-group .form-control {
    border-radius: 0 var(--ap-radius-sm) var(--ap-radius-sm) 0;
}

.auth-premium .input-group > .form-control:not(:first-child):not(:last-child) {
    border-radius: 0;
}

.auth-premium .input-group > .form-control:not(:last-child) {
    border-right: 0;
}

.auth-premium .form-control::placeholder {
    color: #94a3b8;
}

.auth-premium .form-control:focus {
    border-color: var(--ap-amber);
    box-shadow: 0 0 0 3px var(--ap-amber-soft);
}

.auth-premium .input-group:focus-within .input-group-text {
    border-color: var(--ap-amber);
    color: var(--ap-amber-deep);
}

.auth-premium .input-group:focus-within .form-control {
    border-color: var(--ap-amber);
}

.auth-premium .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    border-color: #cbd5e1;
    margin-top: 0.15rem;
}

.auth-premium .form-check-input:checked {
    background-color: var(--ap-amber);
    border-color: var(--ap-amber);
}

.auth-premium .form-check-input:focus {
    box-shadow: 0 0 0 3px var(--ap-amber-soft);
    border-color: var(--ap-amber);
}

.auth-premium .form-check-label {
    font-size: 0.88rem;
    color: var(--ap-slate-600);
}

.auth-premium .btn-primary,
.auth-premium .auth-premium__btn-primary {
    --bs-btn-bg: var(--ap-slate-900);
    --bs-btn-border-color: var(--ap-slate-900);
    --bs-btn-hover-bg: #1a2438;
    --bs-btn-hover-border-color: #1a2438;
    --bs-btn-active-bg: #0c1222;
    --bs-btn-active-border-color: #0c1222;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    min-height: 50px;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    border-radius: var(--ap-radius-sm);
    box-shadow: 0 10px 24px rgba(12, 18, 34, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.auth-premium .btn-primary:hover,
.auth-premium .auth-premium__btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(12, 18, 34, 0.22);
}

.auth-premium .btn-primary:active,
.auth-premium .auth-premium__btn-primary:active {
    transform: translateY(0) scale(0.985);
}

.auth-premium .auth-premium__btn-secondary {
    min-height: 46px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ap-slate-800);
    background: var(--ap-mist);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.auth-premium .auth-premium__btn-secondary:hover {
    background: #e9eef5;
    border-color: #c5d0de;
    color: var(--ap-slate-900);
}

.auth-premium .auth-premium__link {
    color: var(--ap-amber-deep);
    font-weight: 600;
    text-decoration: none;
}

.auth-premium .auth-premium__link:hover {
    color: var(--ap-amber);
    text-decoration: underline;
}

.auth-premium .auth-premium__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.auth-premium .auth-premium__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.15rem 0 0.9rem;
    color: var(--ap-slate-500);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-premium .auth-premium__divider::before,
.auth-premium .auth-premium__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ap-border);
}

.auth-premium .auth-premium__alt {
    display: grid;
    gap: 0.55rem;
}

.auth-premium .auth-premium__hint {
    margin-top: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--ap-radius-sm);
    background: var(--ap-mist);
    color: var(--ap-slate-600);
    font-size: 0.8rem;
    line-height: 1.45;
}

.auth-premium .auth-premium__hint code {
    font-size: 0.78rem;
    color: var(--ap-slate-800);
    background: rgba(12, 18, 34, 0.06);
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
}

.auth-premium .auth-premium__footer {
    margin-top: 1.15rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--ap-slate-500);
}

.auth-premium .text-muted {
    color: var(--ap-slate-500) !important;
}

.auth-premium a:not(.btn):not(.auth-premium__link) {
    color: var(--ap-amber-deep);
    font-weight: 600;
    text-decoration: none;
}

.auth-premium a:not(.btn):not(.auth-premium__link):hover {
    color: var(--ap-amber);
    text-decoration: underline;
}

.auth-premium .otp-input {
    font-family: var(--ap-font-ui);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.45rem;
    text-align: center;
}

.auth-premium .password-toggle-btn {
    border: 1px solid var(--ap-border);
    border-left: 0;
    background: var(--ap-mist);
    color: var(--ap-slate-500);
    border-radius: 0 var(--ap-radius-sm) var(--ap-radius-sm) 0;
}

.auth-premium .password-toggle-btn:hover {
    color: var(--ap-slate-800);
    background: #e9eef5;
}

/* Desktop split */
@media (min-width: 900px) {
    .auth-premium__split {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 2.5rem;
        padding: 2.5rem 2rem;
        align-items: center;
    }

    .auth-premium__brand {
        text-align: left;
        padding: 1rem 0.5rem 1rem 0.25rem;
        max-width: 28rem;
    }

    .auth-premium__mark {
        margin: 0 0 1.35rem;
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
        border-radius: 18px;
    }

    .auth-premium__name {
        font-size: clamp(2.6rem, 4.2vw, 3.6rem);
    }

    .auth-premium__tagline {
        font-size: 1.12rem;
        max-width: 22rem;
    }

    .auth-premium__panel {
        margin: 0 0 0 auto;
        max-width: 440px;
        padding: 2rem 1.85rem 1.9rem;
    }

    .auth-premium__panel-title,
    .auth-premium__panel-sub {
        display: block;
    }
}

/* Motion */
@keyframes ap-brand-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ap-panel-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ap-grid-drift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 48px 48px, 48px 48px;
    }
}

@keyframes ap-glow-drift {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(8%, 10%) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-premium__brand,
    .auth-premium__panel,
    .auth-premium__stage::before,
    .auth-premium__stage::after {
        animation: none !important;
    }

    .auth-premium .btn-primary,
    .auth-premium .auth-premium__btn-primary {
        transition: none;
    }
}
