/*
|--------------------------------------------------------------------------
| assets/css/register.css — pantalla de registro (auth/register.php)
|--------------------------------------------------------------------------
| Las clases base (.field, .alert, .btn, .auth-card...) vienen de style.css.
*/

body.auth {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, .45),
            rgba(0, 0, 0, .45)
        ),
        url('../img/login_background.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.auth-card {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .20);
    padding: 40px;
    max-width: 520px;
    width: 90%;
}

.auth-card img {
    max-width: 200px;
    height: auto !important;
}

@media (max-width: 768px) {
    body.auth {
        background-attachment: scroll;
    }

    .auth-card {
        width: 92%;
        padding: 28px;
    }
}

/* ==========================================================
   INDICADOR DE PASOS
========================================================== */

.register-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 6px;
}

.register-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef4f8;
    color: #7a8494;
    font-size: 13px;
    font-weight: 800;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.register-step-dot.is-active {
    background: #0c5878;
    color: #ffffff;
}

.register-step-line {
    width: 46px;
    height: 2px;
    background: #dbe4ec;
}

.register-steps-labels {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 46px;
    margin-bottom: 20px;
    color: #92a0b3;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.field-hint {
    display: block;
    margin: -4px 0 10px;
    color: #92a0b3;
    font-size: 12px;
}

.register-step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

/* ==========================================================
   AJUSTES DEL REGISTRO CON PAGO (3 pasos)
========================================================== */

.auth-logo-wrap {
    text-align: center;
}

.auth-logo-wrap img {
    margin: 0 auto 0 !important;
    height: 90px !important;
}

.auth-subtitle {
    text-align: center;
}

.auth-footer-note {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.form-step.is-hidden {
    display: none;
}

.register-steps-labels {
    gap: 22px;
}

.pay-plan {
    border: 1px solid #dbe4ec;
    border-radius: 16px;
    background: #f7fbfd;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.pay-plan-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e6f6ec;
    color: #1a7f45;
    font-size: 12px;
    font-weight: 700;
}

.pay-plan-badge.is-standard {
    background: #eaf4f8;
    color: #0c5878;
}

.pay-plan-price {
    margin: 0;
    color: #202131;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
}

.pay-plan-price small {
    color: #748198;
    font-size: 14px;
    font-weight: 600;
}

.pay-plan-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    color: #455066;
    font-size: 13px;
}

.pay-plan-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 6px;
}

.pay-plan-list i {
    color: #1a7f45;
    margin-top: 1px;
}

.pay-card-box {
    min-height: 96px;
    margin-top: 6px;
}

.pay-card-box.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #92a0b3;
    font-size: 13px;
}

.pay-card-errors {
    min-height: 18px;
    margin-top: 6px;
    color: #b42318;
    font-size: 13px;
}

.pay-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0 4px;
    color: #455066;
    font-size: 13px;
    line-height: 1.4;
}

.pay-consent input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
}

.pay-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #92a0b3;
    font-size: 12px;
}

.pay-error {
    display: none;
    margin-top: 12px;
}

.pay-error.is-visible {
    display: block;
}

.btn.is-busy {
    opacity: 0.7;
    cursor: wait;
}

.pay-test-note {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px dashed #d4a017;
    border-radius: 8px;
    background: #fff8e1;
    color: #7a5b00;
    font-size: 13px;
    line-height: 1.4;
}

/* ----- Dirección con autocompletado (Mapbox) ----- */
.addr-ac {
    position: relative;
}

.addr-ac-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    display: none;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(20, 30, 60, 0.14);
    max-height: 260px;
    overflow-y: auto;
}

.addr-ac-list.is-open {
    display: block;
}

.addr-ac-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
}

.addr-ac-item i {
    margin-top: 1px;
    font-size: 16px;
    color: #5b6b83;
}

.addr-ac-item small {
    display: block;
    color: #92a0b3;
    font-size: 12px;
}

.addr-ac-item:hover,
.addr-ac-item.is-active {
    background: #f1f5fb;
}

.addr-ac-attr {
    padding: 6px 14px 8px;
    font-size: 11px;
    color: #92a0b3;
}

.addr-ac input {
    width: 100%;
    box-sizing: border-box;
}

.addr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 18px 0 0;
}

.field label small {
    font-weight: 400;
    color: #92a0b3;
}

@media (max-width: 520px) {
    .addr-grid {
        grid-template-columns: 1fr;
    }
}

.field-error {
    display: block;
    margin-top: 2px;
    color: #c0392b;
    font-size: 12px;
    font-weight: 600;
}

.field-error[hidden] {
    display: none;
}

.field input.is-invalid {
    border-color: #c0392b;
}

