/* =========================================================
   LEARNHIVE REGISTRATION (public learner application)
   Relies on core's student-dashboard.css for tokens, fields,
   buttons and notices.
   ========================================================= */

.learnhive-registration {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 70px;
    color: var(--lh-text);
    font-family: inherit;
}

.learnhive-registration *,
.learnhive-registration *::before,
.learnhive-registration *::after {
    box-sizing: border-box;
}

.lh-reg-header {
    margin-bottom: 24px;
}

.lh-reg-header h1 {
    margin: 6px 0 8px;
    color: var(--lh-navy);
    font-size: clamp(26px, 3.4vw, 34px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.lh-reg-header p {
    margin: 0;
    max-width: 620px;
    color: var(--lh-muted);
    font-size: 15px;
    line-height: 1.6;
}

.lh-reg-form {
    padding: 28px;
    background: var(--lh-surface);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-md);
    box-shadow: var(--lh-shadow-sm);
}

.learnhive-registration .learnhive-field select,
.learnhive-registration .learnhive-field input {
    width: 100%;
    padding: 11px 14px;
    color: var(--lh-text);
    background: #ffffff;
    border: 1px solid var(--lh-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}

.learnhive-registration .learnhive-field select:focus,
.learnhive-registration .learnhive-field input:focus {
    outline: none;
    border-color: var(--lh-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.lh-req { color: #b91c1c; }

/* Honeypot — visually and from screen readers, hidden */
.lh-reg-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lh-reg-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0 20px;
    color: var(--lh-text);
    font-size: 14px;
    line-height: 1.5;
}

.lh-reg-consent input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--lh-primary);
    flex: 0 0 auto;
}

/* Success */
.lh-reg-success {
    padding: 36px 28px;
    text-align: center;
    background: var(--lh-surface);
    border: 1px solid #bbf7d0;
    border-radius: var(--lh-radius-md);
    box-shadow: var(--lh-shadow-sm);
}

.lh-reg-success h2 {
    margin: 0 0 12px;
    color: var(--lh-success);
    font-size: 24px;
    font-weight: 750;
}

.lh-reg-success p {
    margin: 8px auto;
    max-width: 480px;
    color: var(--lh-text);
    font-size: 15px;
    line-height: 1.6;
}

.lh-reg-number {
    display: inline-block;
    margin: 6px auto 14px !important;
    padding: 10px 18px;
    background: var(--lh-primary-light);
    border-radius: 10px;
    color: var(--lh-primary-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 22px !important;
    font-weight: 800;
    letter-spacing: 0.04em;
}

@media (max-width: 640px) {
    .learnhive-registration { padding: 18px 14px 45px; }
    .lh-reg-form { padding: 22px; }
    .learnhive-registration .learnhive-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
