* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* LAYOUT */

.layout {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    width: 100%;
    justify-content: center;
}

/* IMAGEN */

.side-image img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 12px;
}

/* TARJETA */

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: #f9fafc;
    border-radius: 14px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #203a2f;
    font-size: 28px;
    font-weight: 600;
}


/* INPUTS */

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group input {
    width: 100%;
    padding: 12px 42px 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccd3dd;
    font-size: 14px;
}

.input-group input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
}

/* ICONO */

.toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

/* BOTÓN */

button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #159b10;
    color: white;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
}

button:hover {
    background: #0f750c;
}

/* ERROR */

.error {
    background: #ffe3e3;
    color: #b00020;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* =========================
   📱 RESPONSIVE
   ========================= */

/* Tablet */
@media (max-width: 900px) {
    .layout {
        gap: 30px;
    }

    .side-image img {
        max-width: 280px;
    }
}

/* Móvil */
@media (max-width: 680px) {

    .layout {
        flex-direction: column;   /* ← apila */
        gap: 20px;
    }

    .side-image {
        width: 100%;
        text-align: center;
    }

    .side-image img {
        max-width: 320px;
        width: 90%;
    }

    .login-card {
        width: 100%;
        max-width: 420px;
        padding: 28px;
    }
}
/* ALERT MODAL */

.alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.alert-card {
    background: white;
    padding: 28px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: pop .25s ease;
}

.alert-card h3 {
    margin-top: 0;
    color: #b00020;
}

.alert-card button {
    margin-top: 15px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #4c9d48bf;
    color: white;
    cursor: pointer;
}

@keyframes pop {
    from { transform: scale(.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.recuperar-password {
    text-align: right;
    margin: -5px 0 18px;
}

.recuperar-password a {
    color: #1f372c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.recuperar-password a:hover {
    text-decoration: underline;
}