/* ── Email OTP Login — Modal Styles ── */

.eol-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: eolFadeIn 0.2s ease;
}

@keyframes eolFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.eol-modal {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: eolSlideUp 0.25s ease;
}

@keyframes eolSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.eol-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.eol-close:hover { color: #333; background: #f0f0f0; }

/* Logo */
.eol-logo {
    text-align: center;
    margin-bottom: 24px;
}
.eol-logo img {
    max-height: 48px;
    width: auto;
}
.eol-logo h2 {
    font-size: 20px;
    margin: 0;
    color: #1a1a1a;
}

/* Títulos */
.eol-modal h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    text-align: center;
}
.eol-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0 0 22px;
}

/* Campo de email */
.eol-field {
    margin-bottom: 16px;
}
.eol-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.eol-field input {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
    color: #1a1a1a;
}
.eol-field input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.12);
}

/* Mensaje de estado */
.eol-message {
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 12px;
    text-align: center;
    padding: 0 4px;
}
.eol-message.success { color: #1a7e3e; }
.eol-message.error   { color: #c0392b; }
.eol-message.info    { color: #2271b1; }

/* Botón principal */
.eol-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #2271b1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    margin-bottom: 16px;
}
.eol-btn:hover:not(:disabled) { background: #1a5a96; }
.eol-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Divisor */
.eol-divider {
    text-align: center;
    margin: 4px 0 12px;
    position: relative;
}
.eol-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: #eee;
}
.eol-divider span {
    position: relative;
    background: #fff;
    padding: 0 10px;
    font-size: 12px;
    color: #aaa;
}

/* Links */
.eol-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #2271b1;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    padding: 0;
}
.eol-link:hover { text-decoration: underline; }
.eol-link-btn {
    background: none;
    border: none;
    color: #2271b1;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}
.eol-link-btn:disabled { color: #aaa; cursor: not-allowed; }
.eol-link-btn:not(:disabled):hover { text-decoration: underline; }

/* OTP dígitos */
.eol-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.eol-otp-digit {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    outline: none;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
    caret-color: transparent;
}
.eol-otp-digit:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.12);
}
.eol-otp-digit.filled {
    border-color: #2271b1;
    background: #f0f6ff;
}

/* Reenviar */
.eol-resend {
    text-align: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
#eol-countdown {
    color: #888;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 440px) {
    .eol-modal { padding: 28px 18px 22px; }
    .eol-otp-digit { width: 38px; height: 46px; font-size: 20px; }
    .eol-otp-inputs { gap: 7px; }
}

/* ── Formulario inline (página Mi Cuenta) ── */
.eol-inline-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 32px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.eol-inline-wrap h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.eol-inline-step .eol-btn {
    margin-top: 4px;
}
@media (max-width: 520px) {
    .eol-inline-wrap { padding: 28px 18px; }
}
