/* ==========================================================================
   MODAL BARRERA DE REGISTRO
   ========================================================================== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px); /* Efecto difuminado premium */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.auth-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    box-sizing: border-box;
    font-family: inherit;
}

.auth-modal-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 25px 0;
    letter-spacing: -1px;
}

.auth-modal-alert {
    background-color: #eaf4ea;
    color: #00b912;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    margin-bottom: 25px;
    transition: background 0.2s;
}

.auth-google-btn:hover {
    background: #f9f9f9;
}

.auth-google-btn img {
    width: 20px;
}

.auth-divider {
    text-align: center;
    margin-bottom: 25px;
}

.auth-divider span {
    font-size: 13px;
    color: #888;
}

/* Formulario */
.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.auth-input-group {
    margin-bottom: 20px;
}

.auth-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.auth-input-group input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

.auth-input-group input:focus {
    border-color: #00b912;
}

.auth-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.auth-login-link {
    font-size: 14px;
    color: #666;
}

.auth-login-link a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
}

.auth-submit-btn {
    background: #00b912;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-submit-btn:hover {
    background: #00990f;
}

/* Estilos para forzar al botón de Nextend a ocupar el 100% y verse bonito */
.google-login-wrapper .nsl-container {
    display: block !important;
    width: 100% !important;
    margin-bottom: 25px;
}
.google-login-wrapper .nsl-button {
    width: 100% !important;
    border-radius: 30px !important;
    justify-content: center !important;
    box-shadow: none !important;
    border: 1px solid #e0e0e0 !important;
}

/* ==========================================================================
   BOTÓN CERRAR MODALES (La "X")
   ========================================================================== */
.auth-modal-box {
    position: relative; /* Necesario para ubicar la X */
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 28px;
    color: #a0a0a0;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s, transform 0.2s;
}

.auth-modal-close:hover {
    color: #ff4444; /* Se pone rojo al pasar el mouse */
    transform: scale(1.1);
}