/* =========================================================
   AUTH POPUP — Login / Registro / Recuperar contraseña
   Catálogo público
========================================================= */

.auth-nav-btn {
    background: transparent;
    border: 1px solid rgba(0, 188, 212, 0.5);
    color: #00bcd4;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.auth-nav-btn:hover {
    background: rgba(0, 188, 212, 0.1);
    border-color: #00bcd4;
}

/* Badge cuando el usuario está logueado */
.auth-nav-btn.logged-in {
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

/* =========================================================
   OVERLAY
========================================================= */
.auth-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 20, 0.82);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: authFadeIn 0.2s ease;
}

.auth-popup-overlay.hidden {
    display: none;
}

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

/* =========================================================
   POPUP
========================================================= */
.auth-popup {
    background: #111827;
    border: 1px solid #1e2d45;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 36px 40px;
    position: relative;
    animation: authSlideUp 0.25s ease;
}

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

.auth-popup-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: #475569;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}

.auth-popup-close:hover {
    color: #94a3b8;
}

.auth-popup-logo {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
}

.auth-popup-logo span {
    color: #00bcd4;
}

.auth-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 6px;
}

.auth-popup-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 26px;
    line-height: 1.5;
}

/* =========================================================
   FORMULARIO
========================================================= */
.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}

.auth-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #1e2d45;
    border-radius: 10px;
    padding: 12px 15px;
    color: #f1f5f9;
    font-size: 14.5px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: #00bcd4;
}

.auth-field input::placeholder {
    color: #334155;
}

.auth-forgot-link {
    display: block;
    text-align: right;
    font-size: 12.5px;
    color: #00bcd4;
    text-decoration: none;
    margin-top: -8px;
    margin-bottom: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

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

.auth-submit-btn {
    width: 100%;
    background: #00bcd4;
    color: #04111f;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 18px;
}

.auth-submit-btn:hover {
    background: #26c6da;
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-switch-text {
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
}

.auth-switch-link {
    color: #00bcd4;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    text-decoration: underline;
}

/* =========================================================
   MENSAJES
========================================================= */
.auth-message {
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 14px;
    text-align: center;
}

.auth-message.success {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-message.info {
    background: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

/* =========================================================
   DIVIDER
========================================================= */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #1e2d45;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #1e2d45;
}
