/* ========================================
   Signup page
   Loaded after login.css / index.css so it wins on shared selectors.
   ======================================== */
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* login.css sets a blanket * { font-family: Karla } — this out-specifies it */
body.signup-page,
body.signup-page * {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

body.signup-page {
    min-height: 100vh;
    height: auto;
    color: var(--text-light);
    display: block;
}

body.signup-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../images/backgroundimg.webp") no-repeat center center / cover;
    z-index: -2;
    opacity: 0;
    animation: signupFadeInBg .4s ease-in-out forwards;
}

@keyframes signupFadeInBg {
    to { opacity: 1; }
}

/* Fixed, so the scrim still covers the page once the plan tiles make it scroll */
body.signup-page .overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 12, 40, 0.72) 0%, rgba(6, 12, 40, 0.82) 100%);
    z-index: -1;
}

body.signup-page .all-content {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Brand mark ---
   The logo artwork is dark blue, so it needs a light plate to read
   against the photo scrim. Doubles as an obvious link target home. */
.signup-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.signup-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 12px 20px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signup-brand-link:hover,
.signup-brand-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.signup-brand img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}

/* --- Plan chooser --- */
.signup-choose {
    width: 100%;
}

.signup-intro {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 26px;
}

.signup-intro h1 {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-light);
    margin: 0 0 8px;
}

/* GenerateIndex.css forces every <p> to var(--me-text) with !important,
   so the on-scrim paragraphs have to out-rank it to stay light. */
.signup-intro p {
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0;
}

.signup-alt {
    text-align: center;
    margin: 26px 0 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8) !important;
}

.signup-alt a {
    color: var(--text-light);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Auth card --- */
.signup-panel {
    width: 100%;
    max-width: 470px;
}

.auth-card {
    background: var(--bg-white);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    padding: 36px 34px 30px;
    color: var(--text-dark);
}

.auth-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin: 0 0 8px;
}

.auth-sub {
    font-size: 0.92rem;
    color: var(--text-gray);
    text-align: center;
    margin: 0 0 24px;
}

/* Selected plan summary */
.plan-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #eef2ff;
    border: 1px solid rgba(10, 30, 143, 0.14);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

.plan-chip-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.3;
}

.plan-chip-price {
    display: block;
    font-size: 0.82rem;
    color: var(--text-gray);
}

.plan-chip-change {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid rgba(10, 30, 143, 0.35);
}

.plan-chip-change:hover {
    border-bottom-color: var(--primary-blue);
}

/* Errors inside the white card */
.auth-card .error {
    background: #fdecec;
    border: 1px solid #f3c2c2;
    color: #b3261e;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Google button */
.auth-card .google-btn {
    border: 1px solid #dadce0;
    border-radius: 10px;
    padding: 12px 16px;
    gap: 10px;
    margin-bottom: 20px;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.auth-card .google-btn-text {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Divider */
.auth-card .divider {
    text-align: center;
    margin: 0 0 20px;
    position: relative;
}

.auth-card .divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-card .divider span {
    position: relative;
    background: var(--bg-white);
    padding: 0 14px;
    color: var(--text-gray);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Form fields */
.auth-card .loginInputSection {
    width: 100%;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.auth-card .loginInputSection label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.auth-card .loginInputSection input {
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1px solid #d8dee9;
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-card .loginInputSection input::placeholder {
    color: #9aa3b2;
}

.auth-card .loginInputSection input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(10, 30, 143, 0.12);
}

.auth-card .turnstile-row {
    display: flex;
    justify-content: center;
    margin: 4px 0 18px;
}

/* Submit.
   GenerateIndex.css sets input { color: var(--me-hover) !important } to make
   typed text dark, which also hits this button — force the label back to white. */
.auth-card .auth-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    min-width: 0;
    color: var(--text-light) !important;
    background-color: var(--button-blue);
    border: none;
}

.auth-card .auth-submit:hover:not(:disabled) {
    background-color: #081454;
}

.auth-card .auth-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.auth-legal {
    margin: 16px 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-gray);
    text-align: center;
}

.auth-legal a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.auth-foot a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

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

/* --- Responsive --- */
@media (max-width: 600px) {
    body.signup-page .all-content {
        padding: 24px 16px 44px;
    }

    .signup-brand img {
        max-width: 230px;
    }

    .signup-intro h1 {
        font-size: 1.8rem;
    }

    .auth-card {
        padding: 28px 22px 26px;
        border-radius: 16px;
    }
}

/* GenerateIndex.css: p { color: var(--me-text) !important }.
   These paragraphs sit on white cards and must keep the muted grey. */
body.signup-page .pricing-section .pricing-tagline,
body.signup-page .pricing-section .pricing-price-note,
body.signup-page .pricing-section .pricing-footnote,
body.signup-page .auth-card .auth-sub,
body.signup-page .auth-card .auth-legal {
    color: var(--text-gray) !important;
}
