/* ============================================================
   STRATEGYPROOF — AUTH / ACCOUNT
   Shared visual system for:
   Register / Login / Verify / Resend / Account / Supporter
   ============================================================ */

.sp-auth-app,
.sp-auth-wrap {
    --sp-bg: #050914;
    --sp-panel: #0b1220;
    --sp-panel-2: #0e1728;
    --sp-border: rgba(148, 163, 184, 0.14);

    --sp-text: #f4f7fb;
    --sp-muted: #8b98ac;

    --sp-green: #65e572;
    --sp-green-soft: rgba(101, 229, 114, 0.12);

    --sp-blue: #3b82f6;
    --sp-blue-soft: rgba(59, 130, 246, 0.12);

    --sp-purple: #a855f7;
    --sp-purple-soft: rgba(168, 85, 247, 0.12);

    --sp-yellow: #f3c64c;
    --sp-red: #ef5b67;

    box-sizing: border-box;
}


.sp-auth-app *,
.sp-auth-app *::before,
.sp-auth-app *::after,
.sp-auth-wrap *,
.sp-auth-wrap *::before,
.sp-auth-wrap *::after {
    box-sizing: border-box;
}


/* ============================================================
   FULL AUTH SCREEN
   ============================================================ */

.sp-auth-wrap {
    min-height: 100vh;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    width: 100vw;

    padding: 48px 20px 64px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    color: var(--sp-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(84, 48, 160, 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at 30% 0%,
            rgba(24, 96, 180, 0.10),
            transparent 28%
        ),
        var(--sp-bg);
}


/* ============================================================
   AUTH SHELL
   ============================================================ */

.sp-auth-shell {
    width: 100%;
    max-width: 1080px;

    margin: 0 auto;
}


.sp-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 28px;
}


.sp-auth-brand {
    display: flex;
    align-items: center;

    gap: 12px;
}


.sp-auth-brand-mark {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 13px;
    font-weight: 900;

    color: #031008;

    background:
        linear-gradient(
            135deg,
            var(--sp-green),
            #3fcf8e
        );

    box-shadow:
        0 0 28px rgba(101, 229, 114, 0.25);
}


.sp-auth-brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}


.sp-auth-brand-subtitle {
    margin-top: 2px;

    font-size: 10px;
    font-weight: 500;

    color: var(--sp-muted);

    letter-spacing: 0.07em;
    text-transform: uppercase;
}


.sp-auth-card {
    width: 100%;
    max-width: 520px;

    margin: 0 auto;

    padding: 34px;

    border: 1px solid var(--sp-border);
    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            rgba(14, 23, 40, 0.97),
            rgba(11, 18, 32, 0.98)
        );

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.38);

    backdrop-filter: blur(18px);
}


/* ============================================================
   TITLES
   ============================================================ */

.sp-auth-card h1 {
    margin: 0 0 10px;

    color: var(--sp-text);

    font-size: 25px;
    line-height: 1.15;
    font-weight: 850;

    letter-spacing: -0.03em;
}


.sp-auth-card h2 {
    margin: 0 0 8px;

    color: var(--sp-text);

    font-size: 18px;
    font-weight: 800;
}


.sp-auth-intro {
    margin: 0 0 26px;

    color: var(--sp-muted);

    font-size: 13px;
    line-height: 1.65;
}


/* ============================================================
   FORM
   ============================================================ */

.sp-auth-form {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.sp-auth-form label {
    margin-top: 8px;

    color: #c5cfdd;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.sp-auth-form input[type="text"],
.sp-auth-form input[type="email"],
.sp-auth-form input[type="password"] {
    width: 100%;

    min-height: 46px;

    padding: 0 13px;

    border: 1px solid var(--sp-border);
    border-radius: 9px;

    outline: none;

    color: var(--sp-text);

    background: rgba(255, 255, 255, 0.025);

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.sp-auth-form input:hover {
    border-color: rgba(101, 229, 114, 0.22);
}


.sp-auth-form input:focus {
    border-color: rgba(101, 229, 114, 0.65);

    background: rgba(101, 229, 114, 0.025);

    box-shadow:
        0 0 0 3px rgba(101, 229, 114, 0.08);
}


.sp-auth-checkbox {
    display: flex !important;
    align-items: flex-start;

    gap: 10px;

    margin-top: 14px !important;

    color: var(--sp-muted) !important;

    font-size: 12px !important;
    line-height: 1.55;

    letter-spacing: 0 !important;
    text-transform: none !important;
}


.sp-auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    margin: 2px 0 0;

    accent-color: var(--sp-green);
}


.sp-auth-checkbox a {
    color: var(--sp-green);

    text-decoration: none;
}


.sp-auth-checkbox a:hover {
    text-decoration: underline;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.sp-auth-submit {
    width: 100%;

    min-height: 48px;

    margin-top: 18px;

    border: 1px solid rgba(101, 229, 114, 0.38);
    border-radius: 9px;

    color: #031008;

    background:
        linear-gradient(
            135deg,
            var(--sp-green),
            #3fcf8e
        );

    font-family: inherit;
    font-size: 11px;
    font-weight: 850;

    letter-spacing: 0.06em;
    text-transform: uppercase;

    cursor: pointer;

    box-shadow:
        0 10px 24px rgba(101, 229, 114, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


.sp-auth-submit:hover {
    transform: translateY(-1px);

    filter: brightness(1.03);

    box-shadow:
        0 14px 30px rgba(101, 229, 114, 0.18);
}


.sp-auth-submit:active {
    transform: translateY(0);
}


/* ============================================================
   LINKS
   ============================================================ */

.sp-auth-footer {
    margin: 24px 0 0;

    text-align: center;

    color: var(--sp-muted);

    font-size: 12px;
}


.sp-auth-footer a,
.sp-auth-card a {
    color: var(--sp-green);

    text-decoration: none;
}


.sp-auth-footer a:hover,
.sp-auth-card a:hover {
    text-decoration: underline;
}


/* ============================================================
   ALERTS
   ============================================================ */

.sp-auth-errors,
.sp-auth-message {
    margin-bottom: 20px;

    padding: 13px 14px;

    border-radius: 9px;

    font-size: 12px;
    line-height: 1.55;
}


.sp-auth-errors {
    border: 1px solid rgba(239, 91, 103, 0.25);

    color: #ffc8cd;

    background: rgba(239, 91, 103, 0.08);
}


.sp-auth-message {
    border: 1px solid rgba(101, 229, 114, 0.22);

    color: #c9f8ce;

    background: var(--sp-green-soft);
}


.sp-auth-success {
    text-align: center;
}


/* ============================================================
   PLAN / STATUS
   ============================================================ */

.sp-auth-badge {
    display: inline-flex;
    align-items: center;

    min-height: 26px;

    padding: 0 10px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.sp-auth-badge-free {
    border: 1px solid rgba(59, 130, 246, 0.25);

    color: #9fc1ff;

    background: var(--sp-blue-soft);
}


.sp-auth-badge-supporter {
    border: 1px solid rgba(168, 85, 247, 0.28);

    color: #dcb8ff;

    background: var(--sp-purple-soft);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {

    .sp-auth-wrap {
        padding: 28px 14px 45px;
    }

    .sp-auth-card {
        padding: 24px 20px;
        border-radius: 13px;
    }

    .sp-auth-card h1 {
        font-size: 22px;
    }

    .sp-auth-header {
        margin-bottom: 20px;
    }
}

/* ============================================================
   ASTRA PAGE RESET — AUTH / ACCOUNT
   Only affects StrategyProof Auth/Account pages.
   ============================================================ */

body:has(.sp-auth-wrap) {
    background: #050914 !important;
}


body:has(.sp-auth-wrap) .site {
    background: #050914 !important;
}


body:has(.sp-auth-wrap) .site-content,
body:has(.sp-auth-wrap) .ast-container,
body:has(.sp-auth-wrap) .entry-content,
body:has(.sp-auth-wrap) .content-area,
body:has(.sp-auth-wrap) .site-main {
    background: transparent !important;
}


body:has(.sp-auth-wrap) .site-content {
    margin: 0 !important;
    padding: 0 !important;
}


body:has(.sp-auth-wrap) .entry-header,
body:has(.sp-auth-wrap) .page-header {
    display: none !important;
}


body:has(.sp-auth-wrap) .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}


body:has(.sp-auth-wrap) .ast-page-builder-template .entry-content {
    margin: 0 !important;
}


body:has(.sp-auth-wrap) .site-footer {
    margin-top: 0 !important;
}


body:has(.sp-auth-wrap) .site-footer,
body:has(.sp-auth-wrap) .site-header {
    background: #050914 !important;
}
