/* Fondo general */
.auth-wrapper {
    min-height: 100vh;
    background-color: var(--zp-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

/* Contenedor central */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Card de login */
.auth-box {
    width: 100%;
    max-width: 520px;
    padding: 45px 40px;  /* más espacio */
    background-color: var(--zp-card-bg);
    border: 1px solid var(--zp-border);
    border-radius: 14px;
}


/* Inputs */
.auth-box .form-control {
    background-color: var(--zp-bg-alt);
    color: var(--zp-text);
    border: 1px solid var(--zp-border);
    height: 48px;
}

.auth-box .form-control:focus {
    border-color: var(--zp-primary);
    box-shadow: 0 0 0 .25rem rgba(255, 90, 42, 0.25);
}

/* Botón principal */
.btn-zp-auth {
    background-color: var(--zp-primary);
    color: white;
    width: 100%;
    height: 48px;
    font-weight: 600;
    margin-top: 10px;
    border-radius: 6px;
}

.btn-zp-auth:hover {
    background-color: var(--zp-primary-dark);
}

/* Enlace */
.auth-link {
    color: var(--zp-primary);
}

.auth-link:hover {
    text-decoration: underline;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 65%;
    transform: translateY(-42%);
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zp-text-muted);
}



.toggle-password:hover {
    color: var(--zp-primary);
}

.auth-title {
    font-size: 1.8rem;
    color: var(--zp-text);
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--zp-text-muted);
    margin-top: -4px;
}


/* ==============================
   intl-tel-input — THEME FIXES
   ============================== */


:root[data-theme="dark"] .iti__country-list,
:root[data-theme="dark"] .iti__country-list * {
    background-color: var(--zp-bg-card) !important;
    color: var(--zp-text) !important;
}

:root[data-theme="dark"] .iti__dropdown-content,
:root[data-theme="dark"] .iti__dropdown-content * {
    background-color: var(--zp-bg-card) !important;
    color: var(--zp-text) !important;
}

:root[data-theme="dark"] .iti__search-input {
    background-color: var(--zp-bg-card) !important;
    color: var(--zp-text) !important;
    border-color: var(--zp-border) !important;
}

:root[data-theme="dark"] .iti__country:hover {
    background-color: rgba(255,255,255,0.05) !important;
}
:root[data-theme="dark"] {
    --zp-bg-card: #121212;
    --zp-text: #eaeaea;
    --zp-border: #333;
}


.password-rules {
    display: none;
    background: var(--zp-bg-card);
    border: 1px solid var(--zp-border);
    padding: 10px;
    border-radius: 6px;
    margin-top: -2px;
    font-size: .85rem;
}

.password-rules.active {
    display: block;
}

.password-rules .rule {
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-rules .rule.valid {
    color: var(--zp-primary);
}
/* Forzar tamaño completo del campo WhatsApp */
.iti {
    width: 100% !important;
}

#whatsapp {
    width: 100% !important;
}


.telegram-prefix {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--zp-text-muted);
    font-weight: 600;
    z-index: 5;
}

.telegram-input {
    padding-left: 28px !important;
}
/* Placeholder visual sobre intl-tel-input */
.iti--allow-dropdown .iti__flag-container::after {
    content: "País / Código";
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--zp-text-muted);
    pointer-events: none;
    font-size: 0.9rem;
}

/* Cuando el usuario escriba, ocultar placeholder */
.iti input:not(:placeholder-shown) + .iti__flag-container::after {
    content: "";
}

#whatsapp::placeholder {
    color: transparent !important;
}