/* ============================================
   Organization Registration — Overrides only
   Base styles come from onboarding.css
   ============================================ */

/* Narrower card for registration */
.org-reg-page { max-width: 660px; }

/* Center title & subtitle */
.org-reg-page .onboarding-card h1 { text-align: center; font-size: 22px; font-weight: 700; }
.org-reg-page .subtitle { text-align: center; }

/* Divider line */
.org-reg-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 0 0 20px 0;
}

/* Extend onboarding input styles to password & tel */
.org-reg-page .form-field input[type="password"],
.org-reg-page .form-field input[type="tel"] {
    display: flex;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--gray-300, #D1D5DB);
    background: var(--gray-50, #F9FAFB);
    color: var(--gray-900, #111928);
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 125%;
    transition: all 0.2s ease;
    outline: none;
}
.org-reg-page .form-field input[type="password"]:focus,
.org-reg-page .form-field input[type="tel"]:focus {
    border-color: #0a66c2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

/* Add explicit padding to text/email */
.org-reg-page .form-field input[type="text"],
.org-reg-page .form-field input[type="email"] {
    padding: 12px 16px;
}

/* LTR direction for phone */
.org-reg-page .form-field input[dir="ltr"] { text-align: left; }

/* Required asterisk */
.org-req { color: #F05252; margin-right: 2px; }

/* Field hints */
.org-hint {
    display: block;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 4px;
    min-height: 16px;
    text-align: right;
}
.org-hint--err { color: #F05252; }
.org-hint--ok  { color: #31C48D; }

/* Error messages box */
.org-reg-errors {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}
.org-reg-error-item {
    color: #991B1B;
    font-size: 13px;
    line-height: 1.6;
    padding: 2px 0;
    text-align: right;
}
.org-reg-error-item::before { content: "• "; color: #F05252; }

/* Button tweaks */
.org-reg-page .btn-onboarding.btn-primary {
    padding: 12px 40px;
}

/* Responsive */
@media (max-width: 640px) {
    .org-reg-page { max-width: 100%; }
    .org-reg-page .onboarding-card { padding: 24px 20px; }
    .org-reg-page .form-row--two-cols { grid-template-columns: 1fr; }
    .org-reg-page .onboarding-buttons { justify-content: stretch !important; }
    .org-reg-page .btn-onboarding { width: 100%; }
}
