/* formulario_registro_completo.css — Top Banner Registration */

.reg { max-width: 680px; margin: 0 auto; padding: 0 1rem 3rem; }

/* Banner */
.reg__banner { background: linear-gradient(135deg, #8A2BE2 0%, #4c1d95 100%); border-radius: 12px 12px 0 0; padding: 1.25rem 2rem 1rem; color: #fff; margin-top: 2rem; }
.reg__banner-inner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.reg__logo { font-size: 1.125rem; font-weight: 800; }
.reg__logo span { font-weight: 300; opacity: 0.9; }
.reg__banner-label { font-size: 0.8125rem; opacity: 0.85; margin: 0.25rem 0 0; }
.reg__step-label { font-size: 0.8125rem; opacity: 0.8; }
.reg__progress { display: flex; gap: 0.375rem; }
.reg__progress-seg { flex: 1; height: 4px; border-radius: 2px 2px 0 0; background: rgba(255,255,255,0.25); transition: background 0.3s; }
.reg__progress-seg.active { background: rgba(255,255,255,0.9); }

/* Error summary */
.reg__error-summary { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; padding: 0.75rem 1rem; margin-top: 1rem; font-size: 0.8125rem; color: #dc2626; }

/* Steps */
.reg__step { display: none; }
.reg__step.active { display: block; }

/* Card */
.reg__card { background: #fff; border: 1px solid #f3f4f6; border-top: none; border-radius: 0 0 12px 12px; padding: 2rem; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.reg__step:not([data-step="1"]) .reg__card { border-radius: 12px; border-top: 1px solid #f3f4f6; margin-top: 1rem; }
.reg__card-title { font-size: 1.125rem; font-weight: 700; color: #111827; margin: 0 0 0.25rem; }
.reg__card-subtitle { font-size: 0.8125rem; color: #6b7280; margin: 0 0 1.5rem; }

/* Form fields */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 600; color: #374151; margin-bottom: 0.375rem; }
.form-control { width: 100%; padding: 0.625rem 0.875rem; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 0.875rem; transition: border-color 0.15s; box-sizing: border-box; font-family: inherit; }
.form-control:focus { outline: none; border-color: #8A2BE2; box-shadow: 0 0 0 3px rgba(138,43,226,0.1); }
.form-control.is-invalid { border-color: #dc2626; }
.form-control.is-valid { border-color: #16a34a; }
.invalid-feedback { font-size: 0.75rem; color: #dc2626; margin-top: 0.25rem; display: none; }
.valid-feedback { font-size: 0.75rem; color: #16a34a; margin-top: 0.25rem; }
.reg__help { display: block; font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }
.reg__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Input group */
.reg__input-group { display: flex; align-items: center; flex-wrap: nowrap; }
.reg__input-prefix { padding: 0.625rem 0.75rem; background: #f9fafb; border: 1.5px solid #e5e7eb; border-right: none; border-radius: 8px 0 0 8px; font-size: 0.875rem; color: #6b7280; display: flex; align-items: center; flex-shrink: 0; }
.reg__input-group .form-control { border-radius: 0 8px 8px 0; min-width: 0; flex: 1; }
.reg__input-group .form-control:first-child { border-radius: 8px 0 0 8px; border-right: none; }
.reg__verify-btn { padding: 0.625rem 1rem; background: #f3f4f6; border: 1.5px solid #e5e7eb; border-left: none; border-radius: 0 8px 8px 0; font-size: 0.8125rem; font-weight: 500; color: #8A2BE2; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.reg__verify-btn:hover { background: #e5e7eb; }

/* Username suggestions (generated by JS) */
#username-suggestions { margin-top: 0.5rem; }
#username-suggestions .btn { font-size: 0.75rem; padding: 0.25rem 0.5rem; }

/* Dropzone */
.reg__dropzone { position: relative; border: 2px dashed #e5e7eb; border-radius: 8px; text-align: center; padding: 1.5rem; cursor: pointer; transition: border-color 0.15s; }
.reg__dropzone:hover { border-color: #8A2BE2; }
.reg__dropzone-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.reg__dropzone-content { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; color: #9ca3af; font-size: 0.8125rem; }
.reg__dropzone-icon { font-size: 1.5rem; }
.reg__dropzone-preview { position: relative; display: inline-block; }
.reg__dropzone-preview img { max-width: 150px; border-radius: 8px; }
.reg__dropzone-remove { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: #dc2626; color: #fff; border: none; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Password */
.reg__password-wrap { position: relative; }
.reg__password-wrap .form-control { padding-right: 3rem; }
.reg__password-toggle { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1.125rem; opacity: 0.5; }
.reg__password-toggle:hover { opacity: 1; }
.reg__strength { margin-top: 0.5rem; }
.reg__strength-bar { height: 4px; background: #e5e7eb; border-radius: 2px; overflow: hidden; margin-bottom: 0.375rem; }
.reg__strength-fill { height: 100%; width: 0%; border-radius: 2px; transition: width 0.3s, background-color 0.3s; background: #dc3545; }
.reg__counter { text-align: right; font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }

/* Summary */
.reg__summary { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.reg__summary-section { padding: 1rem; background: #f9fafb; border-radius: 8px; }
.reg__summary-section h4 { font-size: 0.8125rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 0.75rem; }
.reg__summary-row { font-size: 0.875rem; color: #374151; padding: 0.25rem 0; }

/* Terms */
.reg__terms { display: flex; flex-direction: column; gap: 0.75rem; }
.reg__check { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8125rem; color: #374151; cursor: pointer; }
.reg__check input { accent-color: #8A2BE2; margin-top: 2px; }
.reg__check a { color: #8A2BE2; }

/* Navigation */
.reg__nav { display: flex; justify-content: space-between; margin-top: 1.5rem; }
.reg__btn { padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.15s; border: none; }
.reg__btn--primary { background: #8A2BE2; color: #fff; }
.reg__btn--primary:hover { background: #7c22d4; }
.reg__btn--outline { background: #fff; color: #6b7280; border: 1.5px solid #e5e7eb; }
.reg__btn--outline:hover { border-color: #d1d5db; }
.reg__btn--success { background: #16a34a; color: #fff; }
.reg__btn--success:hover { background: #15803d; }
.reg__security-note { text-align: center; margin-top: 1.5rem; font-size: 0.8125rem; color: #6b7280; }

/* Responsive */
@media (max-width: 640px) {
    .reg__row { grid-template-columns: 1fr; }
    .reg__card { padding: 1.25rem; }
    .reg__banner { padding: 1rem 1.25rem 0; border-radius: 0; margin-top: 0; }
    .reg__nav { flex-direction: column-reverse; gap: 0.75rem; }
    .reg__btn { width: 100%; text-align: center; }
}
