/* ─────────────────────────────────────────────────────────────
   Signup Page Styles — Classica Hub
   ───────────────────────────────────────────────────────────── */

.signup-body {
    background: #FBF9F7;
    min-height: 100vh;
}

.signup-layout {
    max-width: 100%;
    min-height: 100vh;
}

.signup-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* Hero */
.signup-hero {
    text-align: center;
    padding: 48px 0 32px;
}

.signup-title {
    font-family: 'Instrument Serif', serif;
    font-size: 2.75rem;
    font-weight: 400;
    color: #2B261C;
    margin: 0 0 12px;
    line-height: 1.1;
}

.signup-subtitle {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.125rem;
    color: #6F5C44;
    margin: 0;
    line-height: 1.5;
}

/* Error block */
.signup-errors {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.signup-errors i {
    color: #DC2626;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.signup-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.9rem;
    color: #991B1B;
    line-height: 1.6;
}

/* Form sections */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signup-section {
    background: #fff;
    border: 1px solid #E8E2D9;
    border-radius: 16px;
    padding: 28px 28px 24px;
}

.signup-section-title {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2B261C;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.signup-section-title i {
    font-size: 1.25rem;
    color: #6F5C44;
}

.signup-section-desc {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.875rem;
    color: #6F5C44;
    margin: -12px 0 16px;
}

/* Form elements */
.signup-form .form-group {
    margin-bottom: 16px;
}

.signup-form .form-group:last-child {
    margin-bottom: 0;
}

.signup-form .form-label {
    display: block;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2B261C;
    margin-bottom: 6px;
}

.signup-form .form-input {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.95rem;
    border: 1px solid #D4CDC3;
    border-radius: 10px;
    background: #FBF9F7;
    color: #2B261C;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.signup-form .form-input:focus {
    outline: none;
    border-color: #F9A01B;
    box-shadow: 0 0 0 3px rgba(249, 160, 27, 0.15);
}

.signup-form .form-input::placeholder {
    color: #B5AC9E;
}

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

/* Subdomain picker */
.subdomain-input-wrap {
    display: flex;
    align-items: center;
    background: #FBF9F7;
    border: 1px solid #D4CDC3;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.subdomain-input-wrap:focus-within {
    border-color: #F9A01B;
    box-shadow: 0 0 0 3px rgba(249, 160, 27, 0.15);
}

.subdomain-input-wrap .subdomain-input {
    border: none;
    background: transparent;
    border-radius: 0;
    flex: 1;
    min-width: 0;
}

.subdomain-input-wrap .subdomain-input:focus {
    box-shadow: none;
    border: none;
}

.subdomain-suffix {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.9rem;
    color: #6F5C44;
    padding: 0 14px 0 0;
    white-space: nowrap;
    user-select: none;
}

.subdomain-status {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.8rem;
    margin-top: 6px;
    min-height: 1.2em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.subdomain-status.checking { color: #6F5C44; }
.subdomain-status.available { color: #16A34A; }
.subdomain-status.taken { color: #DC2626; }

/* Grade level chips */
.grade-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grade-chip {
    cursor: pointer;
}

.grade-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.grade-chip-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 8px 14px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6F5C44;
    background: #FBF9F7;
    border: 1px solid #D4CDC3;
    border-radius: 100px;
    transition: all 0.15s;
    user-select: none;
}

.grade-chip-label:hover {
    border-color: #F9A01B;
    background: #FFF8EC;
}

.grade-chip input:checked + .grade-chip-label {
    background: #F9A01B;
    border-color: #F9A01B;
    color: #fff;
    font-weight: 600;
}

/* Submit button */
.signup-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    margin-top: 8px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: #F9A01B;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.signup-submit:hover {
    background: #E8900A;
}

.signup-submit:active {
    transform: scale(0.98);
}

.signup-submit i {
    font-size: 1.2rem;
}

/* Footer text */
.signup-footer-text {
    text-align: center;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.8rem;
    color: #B5AC9E;
    margin-top: 12px;
}

.signup-footer-text a {
    color: #6F5C44;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .signup-title {
        font-size: 2rem;
    }
    .signup-section {
        padding: 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
