/* static/css/signup.css — Sign Up Page — scoped to .signup-page */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@300;400;500&display=swap');

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--sp-bg, #03060d);
    overflow-x: hidden;
    overflow-y: auto;
}

body > header {
    flex: 0 0 auto;
}

body > main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

body > footer {
    display: none;
}

/* ─── Layout wrapper ─────────────────────────────────────────── */
.signup-page {
    min-height: calc(100vh - var(--site-header-height, 72px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: var(--sp-bg, #03060d);
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ─── Card ───────────────────────────────────────────────────── */
.signup-page__card {
    width: 100%;
    max-width: 460px;
    max-height: 100%;
    box-sizing: border-box;
    background: #0b1322;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 32px 40px 30px;
    position: relative;
    overflow: hidden;
}

/* Accent bar — purple/violet tint to visually differentiate from login */
.signup-page__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a78bfa 40%, #7dd3fc 70%, transparent);
}

/* ─── Header ─────────────────────────────────────────────────── */
.signup-page__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.signup-page__logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.signup-page__logo-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(180, 210, 240, 0.65);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.signup-page__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #f0f4ff;
    text-align: center;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
    line-height: 1.2;
}

.signup-page__subtitle {
    font-size: 0.92rem;
    color: rgba(160, 185, 220, 0.6);
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ─── Progress step indicator (optional visual polish) ────────── */
.signup-page__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 32px;
}

.signup-page__step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.2);
    transition: background 0.2s ease;
}

.signup-page__step-dot--active {
    width: 20px;
    border-radius: 3px;
    background: #a78bfa;
}

/* ─── Form ───────────────────────────────────────────────────── */
.signup-page form {
    margin-bottom: 0;
}

.signup-page form > p {
    margin-bottom: 14px;
    text-align: left !important;
}

/* Django-rendered labels */
.signup-page label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(160, 185, 220, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 8px;
}

/* Help text Django adds beneath some fields */
.signup-page .helptext,
.signup-page form p span.helptext {
    display: block;
    font-size: 0.72rem;
    color: rgba(140, 165, 200, 0.45);
    margin-top: 4px;
    line-height: 1.35;
}

.signup-page .helptext ul {
    margin: 4px 0 0;
    padding-left: 16px;
}

.signup-page .helptext li {
    margin: 0;
}

/* All text inputs */
.signup-page input[type="text"],
.signup-page input[type="password"],
.signup-page input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.97rem;
    color: #e8f0ff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
}

.signup-page input[type="text"]::placeholder,
.signup-page input[type="password"]::placeholder,
.signup-page input[type="email"]::placeholder {
    color: rgba(160, 185, 220, 0.3);
}

.signup-page input[type="text"]:hover,
.signup-page input[type="password"]:hover,
.signup-page input[type="email"]:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

.signup-page input[type="text"]:focus,
.signup-page input[type="password"]:focus,
.signup-page input[type="email"]:focus {
    border-color: rgba(167, 139, 250, 0.6);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.09);
    background: rgba(167, 139, 250, 0.03);
}

/* Checkbox (Django may render one for terms etc.) */
.signup-page input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    accent-color: #a78bfa;
    vertical-align: middle;
    margin-right: 8px;
}

/* Submit button */
.signup-page button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #a78bfa;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin-top: 4px;
}

.signup-page button[type="submit"]:hover {
    background: #bba4fc;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(167, 139, 250, 0.28);
}

.signup-page button[type="submit"]:active {
    transform: translateY(0);
}

/* ─── Error messages ──────────────────────────────────────────── */
.signup-page .errorlist {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}

.signup-page .errorlist li {
    font-size: 0.82rem;
    color: #f87171;
    display: flex;
    align-items: center;
    gap: 6px;
}

.signup-page .errorlist li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f87171;
    flex-shrink: 0;
}

/* ─── Footer link ─────────────────────────────────────────────── */
.signup-page__footer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.88rem;
    color: rgba(160, 185, 220, 0.5);
}

.signup-page__footer a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.signup-page__footer a:hover {
    color: #bba4fc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Django's default paragraph wrapping of last <p> */
.signup-page form + p {
    text-align: center !important;
    margin-top: 28px !important;
    font-size: 0.88rem;
    color: rgba(160, 185, 220, 0.5);
}

.signup-page form + p a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 500;
}

.signup-page form + p a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ─── Terms note ──────────────────────────────────────────────── */
.signup-page__terms {
    font-size: 0.74rem;
    color: rgba(140, 165, 200, 0.4);
    text-align: center;
    line-height: 1.35;
    margin-top: 14px;
}

.signup-page__terms a {
    color: rgba(167, 139, 250, 0.65);
    text-decoration: none;
}

.signup-page__terms a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .signup-page {
        padding: 16px;
    }

    .signup-page__card {
        padding: 28px 24px 24px;
        border-radius: 16px;
    }

    .signup-page__title {
        font-size: 1.5rem;
    }
}