/* ================================
   ESTILOS PARA SISTEMA DE AUTENTICACIÓN UNIFICADO
   ================================ */

/* Estilos para el botón de login */
#login-btn {
    cursor: pointer !important;
    transition: color 0.3s ease, transform 0.2s ease;
}

#login-btn:hover {
    transform: scale(1.05);
    color: var(--first-color, #388e3c) !important;
}

/* Estilos del dropdown del usuario */
.nav__user-avatar {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--first-color, #388e3c);
}

.nav__user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos del dropdown menu */
.dropdown-menu {
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
    margin: 0 0.25rem;
}

.dropdown-item:hover {
    background-color: var(--first-color, #388e3c);
    color: white;
}

.dropdown-item-text {
    color: var(--title-color, #333);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}

/* Contenedor de la animación */
#auth-animation {
    margin-bottom: 1rem !important;
}

/* Estilos para los toast notifications */
.toast-container {
    z-index: 1100;
}

.toast {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-body {
    padding: 1rem;
}

/* ================================
   ESTILOS PARA MODAL DE LOGIN (SIMILAR AL SEARCH)
   ================================ */

.login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(230, 75%, 15%, .1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); /* For safari */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login.show-login {
    opacity: 1;
    visibility: visible;
}

.login__content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.login.show-login .login__content {
    transform: translateY(0);
}

.login__animation {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.login__text {
    font-size: 1.1rem;
    color: var(--title-color, #333);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.login__button {
    background: #db4437;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.login__button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.login__button:hover::before {
    width: 200%;
    height: 200%;
}

.login__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(219, 68, 55, 0.3);
}

.login__button i {
    font-size: 1.2rem;
}

.login__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--title-color);
    cursor: pointer;
}

/* Responsive design para móviles */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 160px;
        right: 0;
        left: auto;
    }
    
    .nav__user-avatar {
        width: 28px;
        height: 28px;
    }
    
    #auth-modal .modal-dialog {
        margin: 1rem;
    }
    
    #auth-modal .modal-body {
        padding: 1.5rem;
    }
    
    #auth-animation {
        width: 120px;
        height: 120px;
    }
}

/* Responsividad del modal */
@media (max-width: 576px) {
    #auth-modal .modal-body {
        padding: 1.5rem 1rem;
    }
    
    #auth-animation {
        width: 120px !important;
        height: 120px !important;
    }
    
    #google-login {
        font-size: 0.9rem;
        padding: 10px 20px;
        min-width: 180px;
    }
    
    .login__content {
        padding: 2rem 1.5rem;
        max-width: 350px;
    }
    
    .login__animation {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .login__text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .login__button {
        font-size: 0.9rem;
        padding: 10px 20px;
        min-width: 180px;
    }
    
    .login__close {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}
