/* ==========================================
   LOGIN PAGE
========================================== */

.login-page {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #eef9e6 0%, #eaf8ef 45%, #dff7ec 100%);
}

/* FONDO */

.login-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.login-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DECORACIÓN */

.login-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    z-index: 1;
}

.shape-one {
    width: 280px;
    height: 280px;
    left: -90px;
    bottom: -90px;
}

.shape-two {
    width: 360px;
    height: 360px;
    right: -120px;
    top: -120px;
}

/* LAYOUT */

.login-wrapper {
    position: relative;
    z-index: 2;

    width: min(1250px, 100%);
    height: 100vh;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 500px 500px;

    justify-content: center;
    align-items: center;

    gap: 0;

    padding-inline: 4rem;
    overflow: visible;
}

/* CARD */

.login-card {
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 4rem);

    background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px);

    border-radius: 36px;
    padding: 2rem 2.5rem;

    box-shadow:
        0 25px 60px rgba(15,23,42,.12),
        0 10px 30px rgba(15,23,42,.06);

    position: relative;
    z-index: 10;

    overflow: hidden;
}

/* VOLVER */

.login-back-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;

    min-height: 42px;
    padding: .65rem 1rem;

    border-radius: 12px;
    border: 1px solid #dbe3e8;

    background: rgba(255,255,255,.9);

    display: inline-flex;
    align-items: center;
    gap: .35rem;

    color: #073b25;
    text-decoration: none;
    font-weight: 900;
    font-size: .85rem;

    transition: .25s ease;
}

.login-back-btn:hover {
    transform: translateX(-4px);
    border-color: #16a34a;
    background: #fff;
}

.login-back-btn i {
    font-size: 1.2rem;
}

/* LOGO */

.login-logo {
    text-align: center;
    margin-bottom: .6rem;
}

.login-logo img {
    width: 135px;
    height: auto;
    object-fit: contain;
}

/* HEADING */

.login-heading {
    text-align: center;
    margin-bottom: 1.4rem;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    background: #eaf7ed;
    color: #007a3d;

    padding: .45rem .85rem;
    border-radius: 999px;

    font-size: .82rem;
    font-weight: 900;
    margin-bottom: .8rem;
}

.login-heading h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 900;
    color: #073b25;
    margin-bottom: .35rem;
}

.login-heading p {
    max-width: 390px;
    margin: 0 auto;
    font-size: .95rem;
    line-height: 1.45;
    color: #6b7280;
    font-weight: 600;
}

/* FORM */

.login-form {
    display: grid;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: .88rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: .45rem;
}

.input-box {
    height: 56px;

    border: 1px solid #d1d5db;
    border-radius: 16px;

    display: flex;
    align-items: center;
    gap: .8rem;

    padding: 0 1rem;
    background: #fff;

    transition: .2s ease;
}

.input-box:focus-within {
    border-color: #16a34a;
    box-shadow: 0 0 0 5px rgba(34,197,94,.12);
}

.input-box i {
    font-size: 1.2rem;
    color: #16a34a;
}

.input-box input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;

    font-size: .95rem;
    font-weight: 600;
    color: #111827;
}

.input-box input::placeholder {
    color: #9ca3af;
}

.input-box button {
    border: 0;
    background: transparent;
    padding: 0;
}

/* OPCIONES */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: .5rem;

    color: #6b7280;
    font-size: .9rem;
    font-weight: 700;
}

.remember input {
    width: 18px;
    height: 18px;
}

.login-options a {
    color: #00843d;
    font-weight: 900;
    font-size: .9rem;
    text-decoration: none;
}

/* BOTÓN */

.btn-login {
    height: 58px;

    border: 0;
    border-radius: 16px;

    background: linear-gradient(135deg, #009944 0%, #007a3d 100%);
    color: #fff;

    font-size: 1.05rem;
    font-weight: 900;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;

    cursor: pointer;
    box-shadow: 0 16px 30px rgba(0,122,61,.22);

    transition: .2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
}

/* AYUDA */

.login-help {
    margin-top: 1.2rem;

    background: linear-gradient(135deg, #f0fff4 0%, #f8fff6 100%);
    border-radius: 20px;
    padding: 1rem;

    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-help > i {
    font-size: 2.2rem;
    color: #16a34a;
}

.login-help h3 {
    font-size: 1rem;
    font-weight: 900;
    color: #007a3d;
    margin-bottom: .2rem;
}

.login-help p {
    margin: 0;
    color: #6b7280;
    font-size: .9rem;
    line-height: 1.45;
}

/* RANITA */

.login-frog-area {
    position: relative;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    overflow: visible;
}

.login-frog-circle {
    position: absolute;

    width: 480px;
    height: 480px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        #c9fff1 0%,
        #9de7d3 65%,
        transparent 66%
    );

    border: 18px solid rgba(255,255,255,.75);

    left: -40px;
    top: 50%;
    transform: translateY(-50%);

    z-index: 1;
}

.login-frog-img {
    position: absolute;

    left: -330px;
    bottom: 12vh;

    height: min(72vh, 670px);
    width: auto;

    object-fit: contain;

    z-index: 20;
    pointer-events: none;
}

/* ==========================================
   RESPONSIVE TABLET
========================================== */

@media (max-width: 1199px) {
    .login-wrapper {
        width: min(980px, 100%);
        grid-template-columns: 500px 1fr;
        gap: 1rem;
    }

    .login-card {
        max-width: 500px;
        padding: 1.8rem 2rem;
    }

    .login-frog-circle {
        width: 440px;
        height: 440px;
        left: -70px;
    }

    .login-frog-img {
        left: -120px;
        height: min(68vh, 620px);
    }
}

/* Tablets verticales: se mantiene la ranita, pero más pequeña */
@media (max-width: 991px) {
    .login-page {
        overflow: hidden;
    }

    .login-wrapper {
        width: 100%;
        grid-template-columns: 56% 44%;
        gap: .5rem;
        padding: 1.2rem;
    }

    .login-card {
        max-width: 100%;
        padding: 1.6rem;
        border-radius: 28px;
    }

    .login-back-btn {
        top: 1rem;
        left: 1rem;
        min-height: 38px;
        padding: .55rem .8rem;
        font-size: .78rem;
    }

    .login-logo img {
        width: 120px;
    }

    .login-heading h1 {
        font-size: 2rem;
    }

    .login-heading p {
        font-size: .88rem;
    }

    .input-box {
        height: 52px;
    }

    .btn-login {
        height: 54px;
    }

    .login-help {
        padding: .85rem;
    }

    .login-help p {
        font-size: .82rem;
    }

    .login-frog-circle {
        width: 360px;
        height: 360px;
        left: -45px;
    }

    .login-frog-img {
        left: -110px;
        height: min(58vh, 520px);
        bottom: 10vh;
    }
}

/* Celulares: ocultar ranita y centrar formulario */
@media (max-width: 767px) {
    .login-page {
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
    }

    .login-wrapper {
        min-height: 100vh;
        height: auto;
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .login-card {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding: 1.5rem;
        border-radius: 26px;
    }

    .login-frog-area {
        display: none;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Celulares pequeños */
@media (max-width: 420px) {
    .login-card {
        padding: 1.2rem;
    }

    .login-logo img {
        width: 110px;
    }

    .login-heading h1 {
        font-size: 1.8rem;
    }

    .login-badge {
        font-size: .75rem;
    }

    .input-box {
        height: 50px;
    }

    .btn-login {
        height: 52px;
    }

    .login-help {
        flex-direction: column;
        text-align: center;
    }
}