/* ===== Base Background (Clean + Lucky Flow) ===== */
body {
    background: linear-gradient(135deg, #F3F8F5, #f5f7fa);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* subtle “flow/water” overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('../img/wave-pattern.png'); */
    opacity: 0.04;
    pointer-events: none;
}

.container-fluid {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
}

/* ===== Container Card ===== */
.card {
    display: flex;
    flex-direction: row;
    width: min(850px, 100%);
    margin: 0 auto;
}

/* ===== Left Form Side ===== */
.form {
    flex: 1;
    min-width: 0;
    padding: 40px;
    background: #ffffff;
}

.card > form {
    min-width: 0;
}

.form-footer {
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.inputCont .error {
    display: block;
    margin-top: 6px;
    color: #b42318;
    font-size: 13px;
    line-height: 1.4;
}

/* ===== Right Image Side ===== */
.photoDiv {
    flex: 0.9;
    min-width: 0;
    position: relative;
    overflow: hidden;

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

    background: linear-gradient(135deg, #26734D, #1E5B3D);
}

.photoDiv::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(38, 115, 77, 0.4), rgba(214, 184, 106, 0.2));
    z-index: 1;
}

.photoDiv picture {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.photoDiv img {
    width: 80%;
    height: auto;

    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

/* PASSWORD */
.password-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px; /* space for the icon */
    box-sizing: border-box;
}

.password-wrapper .toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 700px) {
    body {
        align-items: flex-start;
        padding: 20px 14px;
    }

    .card {
        flex-direction: column-reverse;
        width: min(480px, 100%);
        border-radius: 16px;
    }

    .card > form {
        flex: 0 0 auto;
    }

    .form {
        padding: 30px;
    }

    .form h2 {
        margin-top: 0;
        font-size: 24px;
    }

    .photoDiv {
        flex: 0 0 145px;
        min-height: 145px;
    }

    .photoDiv img {
        width: auto;
        height: 82%;
        max-width: 78%;
    }
}

@media (max-width: 380px) {
    body {
        padding: 12px 10px;
    }

    .form {
        padding: 24px 20px;
    }

    .form h2 {
        font-size: 22px;
    }
}