/* =========================================================
   AUTH MODAL CSS LIMPIO
   Login / Registro / Recuperar
   Responsive real para móviles
   ========================================================= */


/* ================================
   OVERLAY
================================ */

.modal-auth {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
    background: rgba(0,0,30,.55);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    z-index: 9999;
    overflow-x: hidden;
}

    .modal-auth.oculto {
        display: none;
    }


/* ================================
   CONTENEDOR
================================ */

.modal-auth-contenido {
    position: relative;
    width: min(420px,100%);
    max-width: calc(100vw - 24px);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    background: rgba(255,255,255,.92);
    padding: 24px 18px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: 0 18px 45px rgba(0,0,50,.28);
    backdrop-filter: blur(6px);
}


/* ================================
   BOTÓN CERRAR
================================ */

.modal-auth-cerrar {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: .2s;
    user-select: none;
}

    .modal-auth-cerrar:hover {
        color: #000;
        transform: scale(1.1);
    }


/* ================================
   HEADER
================================ */

.auth-header {
    text-align: center;
    margin-bottom: 22px;
}

    .auth-header h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 800;
        color: #000066;
        line-height: 1.15;
        word-break: break-word;
    }

.auth-sub {
    margin-top: 10px;
    color: #555;
    font-size: 14px;
    line-height: 1.35;
}


/* ================================
   TABS
================================ */

.auth-tabs {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

.auth-tab {
    flex: 1;
    padding: 10px 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    text-align: center;
    transition: .25s;
    white-space: nowrap;
}

    .auth-tab:hover {
        color: #000066;
    }

    .auth-tab.activo {
        color: #000066;
        border-bottom: 3px solid #000066;
    }

/* si hay 3 tabs el último ocupa toda la fila */

.auth-tabs .auth-tab:last-child:nth-child(3) {
    flex-basis: 100%;
}


/* ================================
   FORMULARIO
================================ */

.auth-form {
    margin-top: 20px;
}

.auth-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid #e1e5ff;
    background: #f7f8ff;
    box-sizing: border-box;
    margin-bottom: 16px;
}

    .auth-input-group i {
        font-size: 18px;
        color: #000066;
    }

    .auth-input-group input {
        border: none;
        outline: none;
        background: none;
        width: 100%;
        font-size: 15px;
        color: #333;
        min-width: 0;
    }

        .auth-input-group input::placeholder {
            color: #999;
        }


/* ================================
   BOTÓN
================================ */

.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg,#000066,#0d2dbb);
    box-shadow: 0 8px 18px rgba(0,0,80,.35);
    transition: .25s;
}

    .auth-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(0,0,80,.4);
    }


/* ================================
   LINKS
================================ */

.auth-links {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
}

    .auth-links a {
        color: #000066;
        text-decoration: none;
        font-weight: 600;
    }

        .auth-links a:hover {
            text-decoration: underline;
        }


/* ================================
   RESPONSIVE
================================ */

@media (max-width:480px) {

    .modal-auth {
        align-items: flex-start;
        padding: 10px;
    }

    .modal-auth-contenido {
        margin-top: 20px;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        padding: 20px 14px;
        border-radius: 22px;
    }

    .auth-header h2 {
        font-size: 20px;
    }

    .auth-sub {
        font-size: 13px;
    }

    .auth-tab {
        flex: 1 1 100%;
        font-size: 13px;
        padding: 10px 6px;
    }

    .auth-input-group {
        padding: 13px 12px;
    }

        .auth-input-group input {
            font-size: 14px;
        }
}


@media (max-width:380px) {

    .auth-input-group {
        padding: 12px 12px;
    }

        .auth-input-group input {
            font-size: 14px;
        }

    .auth-btn {
        padding: 13px;
        font-size: 15px;
    }
}



