/* Registro self-service — extiende panel/login/style.css */

body.registro-page {
    align-items: flex-start;
    padding: 16px 20px;
}

.login-wrapper--wide {
    max-width: 1120px;
    min-height: auto;
    max-height: calc(100vh - 32px);
}

.login-wrapper--compact {
    max-width: 560px;
}

.login-right--scroll {
    overflow-y: auto;
    align-items: flex-start;
    padding: 24px 32px;
    max-height: calc(100vh - 32px);
}

.login-form-box--wide {
    max-width: 100%;
    width: 100%;
}

.registro-completado h1 {
    font-size: 1.35rem;
    margin: 12px 0 8px;
}

.registro-completado-list {
    margin: 0 0 20px 1.1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}
/* Stepper */
.registro-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

.registro-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.registro-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-soft);
    background: var(--white);
    transition: all 0.2s;
}

.registro-step-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
}

.registro-step.is-active .registro-step-num {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--white);
}

.registro-step.is-active .registro-step-label {
    color: var(--orange);
}

.registro-step.is-done .registro-step-num {
    border-color: var(--orange);
    background: var(--orange-soft);
    color: var(--orange);
}

.registro-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 6px;
    margin-bottom: 18px;
    min-width: 12px;
}

.registro-step-line.is-done {
    background: var(--orange);
}

/* Panels */
.registro-panel[hidden] {
    display: none !important;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.registro-form-sucursal .field-group {
    margin-bottom: 12px;
}

.registro-form-sucursal h1 {
    font-size: 1.35rem;
}

.registro-form-sucursal .login-subtitle {
    margin-bottom: 16px;
}

.csf-import {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: #fafafa;
}

.csf-import label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.csf-import-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.csf-import-row input[type="file"] {
    flex: 1;
    min-width: 180px;
    font-size: 0.8125rem;
}

.csf-status.is-success { color: #15803d; }
.csf-status.is-error { color: var(--error-text); }
.csf-status.is-info { color: var(--text-muted); }
.csf-status.is-warning { color: #b45309; }

.btn-login--sm {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.8125rem;
}
.field-hint {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-soft);
    margin-top: 5px;
}

.field-hint-block {
    display: block;
    margin: -8px 0 16px;
    font-size: 0.6875rem;
    color: var(--text-soft);
}

.registro-legal-note {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.04);
    line-height: 1.5;
}

.field-error {
    display: block;
    font-size: 0.75rem;
    color: var(--error-text);
    margin-top: 6px;
    line-height: 1.4;
}

.field-error[hidden] {
    display: none !important;
}

.input-wrap.is-invalid input {
    border-color: var(--error-border);
    background: var(--error-bg);
}

.form-select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 14px;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--input-bg);
    outline: none;
    font-family: inherit;
}

.form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-soft);
}

.form-file {
    width: 100%;
    font-size: 0.8125rem;
    padding: 10px 12px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--input-bg);
    cursor: pointer;
}

.input-wrap--readonly input {
    background: #f0f0f4;
    color: var(--text-muted);
    cursor: default;
}

.input-wrap--readonly input:focus {
    box-shadow: none;
    border-color: var(--border);
}

/* Plan cards */
.plan-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.plan-card:hover {
    border-color: #d8d8e0;
    background: #fafafa;
}

.plan-card.is-selected {
    border-color: var(--orange);
    background: var(--orange-soft);
}

.plan-card input {
    accent-color: var(--orange);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.plan-card-body {
    flex: 1;
}

.plan-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.plan-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Alerts */
.alert-success {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 11px 14px;
    font-size: 0.8125rem;
    color: #15803d;
    margin-bottom: 18px;
    line-height: 1.45;
}

.registro-resend {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.link-btn {
    background: none;
    border: none;
    color: var(--orange);
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    text-decoration: underline;
}

.link-btn:hover {
    color: var(--orange-deep);
}

.link-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.csd-info {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.csd-info p {
    margin: 4px 0;
}

.login-footer a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.btn-login .btn-loader {
    display: none;
}

.btn-login.is-loading .btn-text {
    display: none;
}

.btn-login.is-loading .btn-loader {
    display: inline-block;
}

@media (max-width: 900px) {
    .field-row--3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .field-row,
    .field-row--3 {
        grid-template-columns: 1fr;
    }

    .registro-step-label {
        display: none;
    }

    .login-wrapper--wide {
        min-height: auto;
    }
}
