/* ============================================================
   SIGNUP.CSS — Local account signup page
   Mirrors Login.cshtml visual style: split layout, Sora + Spectral
   fonts, purple accent, white form panel.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #212121;
    background: #ffffff;
}

.signup-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* ── Left panel ─────────────────────────────────────────── */
.signup-bg {
    flex: 1;
    position: relative;
    background: #1a1730;
    overflow: hidden;
    height: 100vh;
}
.signup-bg .bg-illustration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.signup-bg .bg-illustration svg {
    width: 100%;
    height: 100%;
}
.signup-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 23, 48, .15) 0%,
        rgba(26, 23, 48, .25) 50%,
        rgba(26, 23, 48, .85) 85%,
        rgba(26, 23, 48, .95) 100%
    );
    pointer-events: none;
}
.signup-bg-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 0 40px 36px;
}
.signup-bg-caption h1 {
    font-family: 'Spectral', serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 10px;
}
.signup-bg-caption h1 .ai { color: #b8a5e0; }
.signup-bg-caption p {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, .45);
    line-height: 1.6;
    max-width: 440px;
}

/* ── Right form panel ───────────────────────────────────── */
.signup-container {
    width: 540px;
    min-width: 540px;
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    position: relative;
}
.signup-content {
    padding: 48px 56px 40px;
    flex: 1;
}

.signup-logo {
    font-family: 'Spectral', serif;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #212121;
}
.signup-logo .ai { color: #6d5eac; font-weight: 800; }

.signup-heading {
    font-size: 22px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 4px;
}
.signup-subtitle {
    font-size: 13px;
    color: #9590a6;
    font-weight: 300;
    margin-bottom: 24px;
}
.signup-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #6d5eac, #c89b3c);
    margin-bottom: 24px;
    border-radius: 1px;
}

.signup-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #9590a6;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 16px 0 10px;
}
.signup-section-title:first-of-type { margin-top: 0; }

.signup-form-group {
    margin-bottom: 12px;
}
.signup-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b6480;
    margin-bottom: 4px;
}
.signup-form-group input[type="text"],
.signup-form-group input[type="email"],
.signup-form-group input[type="password"],
.signup-form-group input[type="url"],
.signup-form-group input[type="date"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e6e4ec;
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    color: #212121;
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.signup-form-group input:focus {
    border-color: #6d5eac;
    box-shadow: 0 0 0 3px rgba(109, 94, 172, .12);
}

/* Invitation code field — uppercase, monospace, more prominent */
.signup-invite-input {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Sora', monospace !important;
    font-weight: 600;
    font-size: 15px !important;
}

.signup-help {
    font-size: 11px;
    color: #9590a6;
    margin-top: 4px;
}

.signup-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.signup-terms label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b6480;
    font-weight: 400;
    cursor: pointer;
}
.signup-terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6d5eac;
    cursor: pointer;
}

.signup-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    background: #6d5eac;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.signup-submit:hover {
    background: #5d4f9a;
    transform: translateY(-1px);
}
.signup-submit:active { transform: translateY(0); }

.signup-error {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fdecec;
    border: 1px solid #f5c2c2;
    color: #b34141;
    font-size: 12px;
    line-height: 1.5;
}

.signup-back-link {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #6b6480;
}
.signup-back-link a {
    color: #6d5eac;
    font-weight: 600;
    text-decoration: none;
}
.signup-back-link a:hover { text-decoration: underline; }

.signup-panel-bottom {
    padding: 16px 56px 20px;
    font-size: 11px;
    color: #c0bcc9;
    border-top: 1px solid #f1f0f5;
}

/* ── Honeypot — visually + accessibly hidden ────────────── */
.signup-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .signup-bg { display: none; }
    .signup-container { width: 100%; min-width: 100%; }
    .signup-content { max-width: 480px; margin: 0 auto; padding: 32px 24px 24px; }
    .signup-panel-bottom { padding: 16px 24px 20px; text-align: center; }
}
@media (max-width: 480px) {
    .signup-content { padding: 24px 20px; }
    .signup-logo { font-size: 32px; }
    .signup-heading { font-size: 18px; }
    .signup-form-row { grid-template-columns: 1fr; }
}
