/**
 * ABHO Theme - Form Styles
 * 
 * @package ABHO
 * @since 1.0.0
 * @updated 1.5.0 — Major UI/UX overhaul for registration forms
 */

/* ========================================
   CSS VARIABLES (scoped to forms)
   ======================================== */
:root {
    --form-radius: 8px;
    --form-border: #d1d5db;
    --form-border-focus: #0067AC;
    --form-bg: #fff;
    --form-bg-hover: #f9fafb;
    --form-shadow-focus: 0 0 0 3px rgba(0, 103, 172, .12);
    --form-text: #374151;
    --form-label: #1f2937;
    --form-placeholder: #9ca3af;
    --form-gap: 20px;
    --form-field-height: 46px;
}

/* ========================================
   FORM BASE
   ======================================== */

.abho-form {
    max-width: 100%;
}

.abho-form__group {
    margin-bottom: var(--abho-spacing-lg, 24px);
}

.abho-form__label {
    display: block;
    margin-bottom: var(--abho-spacing-xs, 4px);
    font-weight: 500;
    color: var(--abho-gray-700, #4b5563);
}

.abho-form__label--required::after {
    content: ' *';
    color: var(--abho-error, #dc3545);
}

.abho-form__help {
    margin-top: var(--abho-spacing-xs, 4px);
    font-size: 0.875rem;
    color: var(--abho-gray-500, #6b7280);
}

.abho-form__error {
    margin-top: var(--abho-spacing-xs, 4px);
    font-size: 0.875rem;
    color: var(--abho-error, #dc3545);
}


/* ========================================
   INPUT FIELDS
   ======================================== */

.abho-input,
.abho-select,
.abho-textarea {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--form-text);
    background-color: var(--form-bg);
    border: 1.5px solid var(--form-border);
    border-radius: var(--form-radius);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    height: var(--form-field-height);
    box-sizing: border-box;
}

.abho-input::placeholder,
.abho-select::placeholder,
.abho-textarea::placeholder {
    color: var(--form-placeholder);
}

.abho-input:hover,
.abho-select:hover,
.abho-textarea:hover {
    border-color: #9ca3af;
    background-color: var(--form-bg-hover);
}

.abho-input:focus,
.abho-select:focus,
.abho-textarea:focus {
    outline: none;
    border-color: var(--form-border-focus);
    box-shadow: var(--form-shadow-focus);
    background-color: #fff;
}

.abho-input:disabled,
.abho-select:disabled,
.abho-textarea:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.abho-input--error,
.abho-select--error,
.abho-textarea--error {
    border-color: var(--abho-error, #dc3545);
}

.abho-input--success,
.abho-select--success,
.abho-textarea--success {
    border-color: var(--abho-success, #28a745);
}

/* Input with icon */
.abho-input-group {
    position: relative;
}

.abho-input-group__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--abho-gray-500, #6b7280);
    pointer-events: none;
}

.abho-input-group__icon + .abho-input {
    padding-left: 42px;
}


/* ========================================
   TEXTAREA
   ======================================== */

.abho-textarea {
    min-height: 120px;
    resize: vertical;
    height: auto;
}


/* ========================================
   SELECT
   ======================================== */

.abho-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.abho-select:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230067AC' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}


/* ========================================
   CHECKBOX & RADIO
   ======================================== */

.abho-checkbox,
.abho-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.abho-checkbox input,
.abho-radio input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    cursor: pointer;
    accent-color: var(--abho-primary, #0067AC);
}

.abho-checkbox__label,
.abho-radio__label {
    font-weight: normal;
    color: var(--form-text);
}

/* Radio Group — modern card-like style */
.abho-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.abho-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--form-radius);
    cursor: pointer;
    transition: all .2s ease;
    font-size: .9375rem;
    color: var(--form-text);
    flex: 1;
    min-width: 140px;
}

.abho-radio-label:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.abho-radio-label:has(input:checked) {
    border-color: var(--abho-primary, #0067AC);
    background: rgba(0, 103, 172, .06);
    box-shadow: 0 0 0 1px var(--abho-primary, #0067AC);
}

.abho-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--abho-primary, #0067AC);
    margin: 0;
    flex-shrink: 0;
}

.abho-radio-label span {
    font-weight: 500;
}

/* Checkbox Group */
.abho-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.abho-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--form-radius);
    cursor: pointer;
    transition: all .2s ease;
    font-size: .9375rem;
    color: var(--form-text);
}

.abho-checkbox-label:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.abho-checkbox-label:has(input:checked) {
    border-color: var(--abho-primary, #0067AC);
    background: rgba(0, 103, 172, .06);
}

.abho-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--abho-primary, #0067AC);
    margin: 0;
    flex-shrink: 0;
}

.abho-checkbox-label.abho-checkbox-single {
    background: transparent;
    border: none;
    padding: 4px 0;
}


/* ========================================
   FILE UPLOAD
   ======================================== */

.abho-file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background-color: #fafafa;
    cursor: pointer;
    transition: all .25s ease;
}

.abho-file-upload:hover {
    border-color: var(--abho-primary, #0067AC);
    background-color: rgba(0, 103, 172, .03);
}

.abho-file-upload.is-dragover {
    border-color: var(--abho-primary, #0067AC);
    background-color: rgba(0, 103, 172, .06);
    transform: scale(1.01);
}

.abho-file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.abho-file-upload__icon {
    font-size: 40px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.abho-file-upload__text {
    font-size: .9375rem;
    color: #4b5563;
    font-weight: 500;
}

.abho-file-upload__hint {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* File preview */
.abho-file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--form-radius);
    margin-top: 10px;
}

.abho-file-preview__icon {
    font-size: 22px;
    color: var(--abho-primary, #0067AC);
}

.abho-file-preview__name {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    word-break: break-all;
    font-weight: 500;
}

.abho-file-preview__size {
    font-size: 0.75rem;
    color: #9ca3af;
}

.abho-file-preview__remove {
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background .15s;
}

.abho-file-preview__remove:hover {
    background: #fef2f2;
}


/* ========================================
   FORM STEPS (WIZARD) — sidebar/numbered steps
   ======================================== */

.abho-steps {
    display: flex;
    margin-bottom: 28px;
}

.abho-steps__item {
    flex: 1;
    position: relative;
    text-align: center;
}

.abho-steps__item::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e5e7eb;
}

.abho-steps__item:last-child::after {
    display: none;
}

.abho-steps__number {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-weight: 700;
    color: #9ca3af;
    background-color: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    font-size: .875rem;
}

.abho-steps__label {
    display: block;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* Active step */
.abho-steps__item.is-active .abho-steps__number {
    color: #fff;
    background-color: var(--abho-primary, #0067AC);
    border-color: var(--abho-primary, #0067AC);
    box-shadow: 0 0 0 4px rgba(0, 103, 172, .15);
}

.abho-steps__item.is-active .abho-steps__label {
    color: var(--abho-primary, #0067AC);
    font-weight: 600;
}

/* Completed step */
.abho-steps__item.is-completed .abho-steps__number {
    color: #fff;
    background-color: var(--abho-success, #28a745);
    border-color: var(--abho-success, #28a745);
}

.abho-steps__item.is-completed::after {
    background-color: var(--abho-success, #28a745);
}

.abho-steps__item.is-completed .abho-steps__label {
    color: var(--abho-success, #28a745);
}


/* ========================================
   FORM ROW (GRID) — alternate layout
   ======================================== */

.abho-form__row {
    display: grid;
    gap: var(--form-gap);
}

.abho-form__row--2 {
    grid-template-columns: repeat(2, 1fr);
}

.abho-form__row--3 {
    grid-template-columns: repeat(3, 1fr);
}

.abho-form__row--auto {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 768px) {
    .abho-form__row--2,
    .abho-form__row--3 {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   VALIDATION STATES
   ======================================== */

.abho-field--valid .abho-input,
.abho-field--valid .abho-select {
    border-color: var(--abho-success, #28a745);
}

.abho-field--invalid .abho-input,
.abho-field--invalid .abho-select {
    border-color: var(--abho-error, #dc3545);
}

.abho-field--invalid .abho-form__error {
    display: block;
}


/* ========================================
   REGISTRATION FLOW - TYPE SELECTOR
   ======================================== */

.abho-registration-selector {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.abho-registration-selector h2 {
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.abho-registration-selector > p {
    margin-bottom: 32px;
    color: #6b7280;
    font-size: .95rem;
}

.abho-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.abho-type-card {
    padding: 28px 24px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    text-align: center;
}

.abho-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    border-color: rgba(0, 103, 172, .3);
}

.abho-type-card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

.abho-type-steps {
    margin: 0 0 20px;
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 500;
}

.abho-type-card .button-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--abho-primary, #0067AC);
    color: #fff;
    border: none;
    border-radius: var(--form-radius);
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease;
}

.abho-type-card .button-primary:hover {
    background: #005a87;
}


/* ========================================
   REGISTRATION FLOW - PROGRESS BAR
   ======================================== */

.abho-progress {
    max-width: 100%;
    margin: 0 0 32px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.abho-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 16px;
}

.abho-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--abho-primary, #0067AC), #38bdf8);
    border-radius: 100px;
    transition: width .4s ease;
}

.abho-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
}

.abho-progress-step {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    transition: all .25s ease;
}

.abho-progress-step.completed {
    background: var(--abho-success, #22c55e);
    border-color: var(--abho-success, #22c55e);
    color: #fff;
}

.abho-progress-step.current {
    background: var(--abho-primary, #0067AC);
    border-color: var(--abho-primary, #0067AC);
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(0, 103, 172, .15);
}

.abho-progress-text {
    text-align: center;
    margin: 0;
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}


/* ========================================
   REGISTRATION FLOW - FORM CONTAINER
   ======================================== */

.abho-registration-form {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.abho-step-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.abho-step-header h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
}

.abho-step-header p {
    margin: 0;
    color: #6b7280;
    font-size: .9375rem;
}

.abho-form-messages {
    margin-bottom: 20px;
}

.abho-form-messages:empty {
    display: none;
}

.abho-form-messages .abho-notice {
    padding: 14px 18px;
    border-radius: var(--form-radius);
    font-size: .9375rem;
    line-height: 1.5;
}


/* ========================================
   REGISTRATION FLOW - FIELD ROW + WIDTHS
   ======================================== */

.abho-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    margin-bottom: 0;
}

.abho-form-field {
    padding: 0 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Label styling in form fields */
.abho-form-field > label {
    display: block;
    margin-bottom: 6px;
    font-size: .8625rem;
    font-weight: 600;
    color: var(--form-label);
    letter-spacing: .01em;
}

.abho-form-field > label .required {
    color: #ef4444;
    margin-left: 2px;
}

/* Description under fields */
.abho-field-description {
    margin: 5px 0 0;
    font-size: .8125rem;
    color: #9ca3af;
    line-height: 1.4;
}

/* Width classes */
.abho-field-width-10 { width: 10%; }
.abho-field-width-15 { width: 15%; }
.abho-field-width-20 { width: 20%; }
.abho-field-width-25 { width: 25%; }
.abho-field-width-30 { width: 30%; }
.abho-field-width-33 { width: 33.333%; }
.abho-field-width-34 { width: 34%; }
.abho-field-width-40 { width: 40%; }
.abho-field-width-50 { width: 50%; }
.abho-field-width-60 { width: 60%; }
.abho-field-width-70 { width: 70%; }
.abho-field-width-75 { width: 75%; }
.abho-field-width-80 { width: 80%; }
.abho-field-width-100 { width: 100%; }

/* Tablet: 2-col fields -> full */
@media (max-width: 768px) {
    .abho-form-row {
        margin: 0 -8px;
    }
    .abho-form-field {
        padding: 0 8px;
        margin-bottom: 16px;
    }
    .abho-form-field {
        width: 100% !important;
    }
    .abho-radio-group {
        flex-direction: column;
    }
    .abho-radio-label {
        min-width: 0;
    }
}


/* ========================================
   REGISTRATION FLOW - SECTION HEADINGS
   ======================================== */

.abho-form-heading-wrapper {
    padding: 0 10px;
    margin: 28px 0 16px;
    padding-top: 24px;
    width: 100%;
    border-top: 1px solid #e5e7eb;
    position: relative;
}

.abho-form-heading-wrapper:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.abho-form-heading-wrapper h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.abho-form-heading-wrapper h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--abho-primary, #0067AC);
    border-radius: 2px;
    flex-shrink: 0;
}

.abho-heading-desc {
    margin: 0;
    font-size: 0.8125rem;
    color: #9ca3af;
    padding-left: 12px;
}


/* ========================================
   REGISTRATION FLOW - ERROR STATE
   ======================================== */

.abho-form-field.has-error .abho-input,
.abho-form-field.has-error .abho-textarea,
.abho-form-field.has-error .abho-select {
    border-color: #ef4444;
    background-color: #fef2f2;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .08);
}

.abho-form-field.has-error > label {
    color: #dc2626;
}

.abho-field-error {
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 4px;
    font-weight: 500;
}

.abho-field-error:empty {
    display: none;
}


/* ========================================
   REGISTRATION FLOW - MEDIA UPLOAD
   ======================================== */

.abho-media-field {
    background: #fafafa;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    transition: border-color .2s ease, background .2s ease;
}

.abho-media-field:hover {
    border-color: #93c5fd;
    background: #f0f9ff;
}

.abho-media-field.has-file {
    border-style: solid;
    border-color: var(--abho-success, #22c55e);
    background: #f0fdf4;
}

.abho-media-preview {
    margin-bottom: 12px;
}

.abho-media-preview:empty {
    display: none;
}

.abho-media-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.abho-file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--form-radius);
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: .875rem;
    transition: all .15s;
}

.abho-file-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.abho-media-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.abho-media-controls .button {
    padding: 8px 16px;
    border-radius: var(--form-radius);
    font-size: .875rem;
    cursor: pointer;
}

.abho-media-info {
    margin: 0;
    font-size: 0.75rem;
    color: #9ca3af;
}


/* ========================================
   REGISTRATION FLOW - CONDITIONAL
   ======================================== */

.abho-conditional-field {
    display: none;
}

.abho-conditional-field.is-visible {
    display: block;
}


/* ========================================
   REGISTRATION FLOW - ACTIONS (buttons)
   ======================================== */

.abho-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    gap: 12px;
}

.abho-btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #d1d5db;
    color: #374151;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--form-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: .9375rem;
    transition: all .2s ease;
}

.abho-btn-prev:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
}

.abho-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--abho-primary, #0067AC);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: var(--form-radius);
    cursor: pointer;
    font-size: .9375rem;
    min-width: 180px;
    transition: all .2s ease;
    box-shadow: 0 1px 3px rgba(0, 103, 172, .3);
}

.abho-btn-submit:hover {
    background: #005a87;
    box-shadow: 0 4px 12px rgba(0, 103, 172, .25);
    transform: translateY(-1px);
}

.abho-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 103, 172, .2);
}

.abho-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.abho-btn-submit.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.abho-btn-submit.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: abho-spin 0.6s linear infinite;
}

/* @keyframes abho-spin definido em main.css — fonte única */


/* ========================================
   RESPONSIVE — small screens
   ======================================== */

@media (max-width: 600px) {
    .abho-registration-form {
        padding: 0;
    }
    
    .abho-progress {
        padding: 16px;
        margin-bottom: 20px;
    }

    .abho-progress-step {
        width: 26px;
        height: 26px;
        font-size: .65rem;
    }
    
    .abho-step-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .abho-step-header h2 {
        font-size: 1.15rem;
    }
    
    .abho-form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .abho-form-actions .button,
    .abho-form-actions .abho-btn-prev,
    .abho-form-actions .abho-btn-submit {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .abho-form-heading-wrapper {
        margin: 20px 0 12px;
        padding-top: 16px;
    }

    .abho-checkbox-group {
        gap: 6px;
    }
}


/* ========================================
   NOTICES
   ======================================== */

.abho-notice {
    padding: 14px 18px;
    border-radius: var(--form-radius);
    font-size: .9375rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.abho-notice-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.abho-notice-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.abho-notice-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.abho-notice-info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

/* =====================================================================
   PASSWORD TOGGLE + STRENGTH INDICATOR
   ===================================================================== */
.abho-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.abho-password-wrapper .abho-input {
    padding-right: 46px;
    flex: 1;
}

.abho-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    line-height: 1;
    transition: color .2s;
    z-index: 2;
    border-radius: 4px;
}

.abho-password-toggle:hover {
    color: var(--abho-primary, #0067AC);
    background: rgba(0, 103, 172, .06);
}

/* Password Strength */
.abho-password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.78rem;
}

.abho-password-strength small {
    color: #6b7280;
}

.abho-strength-bar {
    width: 100px;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.abho-strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .3s, background .3s;
}

/* Field error state — keep values visible */
.abho-form-field.has-error .abho-input,
.abho-form-field.has-error .abho-textarea,
.abho-form-field.has-error .abho-select {
    border-color: #ef4444;
    background-color: #fef2f2;
}


/* =====================================================================
   ALREADY REGISTERED / LOGIN REQUIRED MESSAGES
   ===================================================================== */
.abho-already-registered,
.abho-login-required {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.abho-already-registered h3,
.abho-login-required h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.abho-already-registered p,
.abho-login-required p {
    color: #6b7280;
    margin-bottom: 20px;
}

.abho-already-registered a,
.abho-login-required a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--abho-primary, #0067AC);
    color: #fff;
    border-radius: var(--form-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background .2s;
}

.abho-already-registered a:hover,
.abho-login-required a:hover {
    background: #005a87;
}
