/* ═══════════════════════════════════════════════════════════
   ESTILOS PARA AUTENTICACIÓN
   ═══════════════════════════════════════════════════════════ */

#user-btn-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

#user-btn {
    background: none;
    border: 1px solid #555;
    color: #ccc;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    font-family: inherit;
}

#user-btn:hover {
    border-color: #4ade80;
    color: #4ade80;
}

.auth-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 100003;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: all 0.3s;
}

.auth-modal-overlay.active {
    opacity: 1; visibility: visible;
}

.auth-modal-box {
    background: #2a2a2a; border: 1px solid #444;
    padding: 25px; border-radius: 14px;
    max-width: 90%; width: 380px;
    color: #ececec; font-family: inherit;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 90vh; overflow-y: auto;
}

.auth-modal-box h2 {
    margin: 0 0 8px 0; color: #fff; font-size: 1.4rem;
}

.auth-modal-box p.desc {
    margin: 0 0 20px 0; color: #999; font-size: 0.9rem;
}

.auth-input {
    width: 100%; padding: 12px 14px; box-sizing: border-box;
    border: 1px solid #444; border-radius: 8px;
    background: #1a1a1a; color: #fff; font-size: 0.95rem;
    font-family: inherit; margin-bottom: 12px; outline: none;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: #4ade80;
}

.auth-btn {
    width: 100%; padding: 12px;
    border: none; border-radius: 8px;
    background: #4ade80; color: #1a1a1a;
    font-weight: bold; font-size: 1rem; cursor: pointer;
    font-family: inherit; transition: all 0.2s;
}

.auth-btn:hover {
    background: #5ae890;
}

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

.auth-link {
    color: #4ade80; cursor: pointer; font-size: 0.9rem;
    text-decoration: underline; transition: opacity 0.2s;
}

.auth-link:hover {
    opacity: 0.8;
}

.auth-switch {
    text-align: center; margin-top: 15px; color: #999; font-size: 0.9rem;
}

.auth-legal {
    margin: 14px 0 0 0;
    font-size: 0.72rem;
    color: #777;
    line-height: 1.45;
    text-align: center;
}

.auth-legal a {
    color: #4ade80;
    text-decoration: underline;
}

.auth-legal a:hover {
    color: #6ee8a0;
}

.auth-error {
    color: #ff6b6b; font-size: 0.85rem; margin: 0 0 12px 0;
    display: none;
}

.user-info {
    display: none;
    align-items: center; gap: 8px;
}

.user-email {
    font-size: 0.8rem; color: #999; max-width: 150px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.sign-out-btn {
    background: none; border: 1px solid #555; color: #ccc;
    padding: 4px 12px; border-radius: 14px; cursor: pointer;
    font-size: 0.75rem; transition: all 0.2s; font-family: inherit;
}

.sign-out-btn:hover {
    border-color: #ff6b6b; color: #ff6b6b;
}

/* ─── BOTÓN DE GOOGLE ─── */
.google-btn {
    width: 100%; padding: 11px;
    border: 1px solid #555; border-radius: 8px;
    background: #1a1a1a; color: #ececec;
    font-size: 0.95rem; cursor: pointer;
    font-family: inherit; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 0;
}

.google-btn:hover {
    background: #252525; border-color: #4ade80;
}

.google-btn svg {
    flex-shrink: 0;
}

/* ─── DIVISOR ─── */
.auth-divider {
    display: flex; align-items: center;
    margin: 18px 0; color: #666; font-size: 0.85rem;
}

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

.auth-divider span {
    padding: 0 12px;
}

/* Responsive */
@media (max-width: 600px) {
    .user-email {
        max-width: 100px;
    }
}
