body {
    font-family: "Karla", sans-serif;
    background-color: #366700;
    min-height: 100vh;
}

.brand-wrapper {
    margin-bottom: 19px;
}

    .brand-wrapper .logo {
        height: 37px;
    }

.login-card {
    border: 0;
    border-radius: 27.5px;
    box-shadow: 0 10px 30px 0 rgba(172, 168, 168, 0.43);
    overflow: hidden;
}

.login-card-img {
    padding: 10px;
    border-radius: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.login-card .card-body {
    padding: 85px 60px 60px;
}

@media (max-width: 422px) {
    .login-card .card-body {
        padding: 35px 24px;
    }
}

.login-card-description {
    font-size: 25px;
    color: #000;
    font-weight: normal;
    margin-bottom: 23px;
}

.login-card form {
    max-width: 326px;
}

.login-card .form-control {
    border: 1px solid #d5dae2;
    padding: 15px 25px;
    margin-bottom: 20px;
    min-height: 45px;
    font-size: 13px;
    line-height: 15;
    font-weight: normal;
}

    .login-card .form-control::-webkit-input-placeholder {
        color: #919aa3;
    }

    .login-card .form-control::-moz-placeholder {
        color: #919aa3;
    }

    .login-card .form-control:-ms-input-placeholder {
        color: #919aa3;
    }

    .login-card .form-control::-ms-input-placeholder {
        color: #919aa3;
    }

    .login-card .form-control::placeholder {
        color: #919aa3;
    }

.login-card .login-btn {
    padding: 13px 20px 12px;
    background-color: #1b9aa3;
    border-radius: 4px;
    font-size: 17px;
    font-weight: bold;
    line-height: 20px;
    color: #fff;
    margin-bottom: 24px;
}

    .login-card .login-btn:hover {
        border: 1px solid #000;
        background-color: transparent;
        color: #000;
    }

.login-card .forgot-password-link {
    font-size: 14px;
    color: #919aa3;
    margin-bottom: 12px;
}

.login-card-footer-text {
    font-size: 16px;
    color: #0d2366;
    margin-bottom: 60px;
}

@media (max-width: 767px) {
    .login-card-footer-text {
        margin-bottom: 24px;
    }
}

.login-card-footer-nav a {
    font-size: 14px;
    color: #919aa3;
}

/*# sourceMappingURL=login.css.map */

/* ─── Base ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Karla', sans-serif;
    background: linear-gradient(135deg, #11949e 0%, #11595e 50%, #1eacb7 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Layout ─── */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* ─── Card ─── */
.login-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* ─── Left image panel ─── */
.login-card-img-col {
    position: relative;
    min-height: 420px;
    background: linear-gradient(160deg, #6ab04c 0%, #f9ca24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    position: absolute;
    inset: 0;
}

.login-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.18) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 28px 24px;
}

.img-overlay-text {
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

    .img-overlay-text h3 {
        font-size: 1.35rem;
        font-weight: 700;
        margin-bottom: 6px;
        letter-spacing: 0.3px;
    }

    .img-overlay-text p {
        font-size: 0.85rem;
        opacity: 0.9;
        margin: 0;
    }

/* ─── Right form panel ─── */
.card-body {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

/* ─── Logo ─── */
.brand-wrapper {
    text-align: center;
    margin-bottom: 28px;
}

    .brand-wrapper .logo {
        max-width: 220px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

/* ─── Section headings ─── */
.login-card-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 22px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ─── Input groups ─── */
.input-icon-wrapper {
    position: relative;
}

    .input-icon-wrapper .mdi {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.15rem;
        color: #175d8c;
        pointer-events: none;
    }

    .input-icon-wrapper .form-control {
        padding-left: 38px;
    }

.login-card .login-btn:hover {
    border: 1px solid #ffffff;
    background-color: #14777e;
    color: #ffffff;
}

.form-control {
    height: 46px;
    border: 1.5px solid #d0dde8;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fbff;
}

    .form-control:focus {
        border-color: #175d8c;
        box-shadow: 0 0 0 3px rgba(23, 93, 140, 0.12);
        background: #fff;
        outline: none;
    }

    .form-control::placeholder {
        color: #aab8c5;
    }

/* ─── Login button ─── */
.login-btn {
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 46px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(23, 93, 140, 0.35);
}

    .login-btn:hover:not(:disabled) {
        opacity: 0.93;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(23, 93, 140, 0.42);
    }

    .login-btn:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(23, 93, 140, 0.3);
    }

    .login-btn:disabled {
        opacity: 0.72;
        cursor: not-allowed;
    }

/* ─── Error message ─── */
.login-error-box {
    background: #fff2f2;
    border: 1px solid #ffcbcb;
    border-radius: 7px;
    padding: 9px 14px;
    font-size: 0.85rem;
    color: #d9534f;
    margin-bottom: 14px;
    display: none;
}

/* ─── CAPTCHA ─── */
.captcha-label {
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* CAPTCHA code row: canvas + refresh button side by side, centred */
.captcha-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#captchaCanvas {
    height: 55px;
    border: 1.5px solid #d0dde8;
    border-radius: 8px;
    background: #eef4ff;
    flex-shrink: 0;
    display: block;
    width: 225px;
}


.captcha-refresh-btn {
    background: #3d8de0;
    border: none;
    border-radius: 8px;
    width: 42px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.2rem;
    transition: background 0.15s;
    flex-shrink: 0;
}

    .captcha-refresh-btn:hover {
        background: #2d78cc;
    }


/* CAPTCHA input row: input boxes on their own line, centred */
.captcha-boxes {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    margin-bottom: 2px;
}

.captchaBox {
    width: 42px;
    height: 46px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    border: 1.5px solid #c8d5e0;
    border-radius: 6px;
    background: #fff;
    color: #175d8c;
    text-transform: uppercase;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

    .captchaBox:focus {
        border-color: #175d8c;
        box-shadow: 0 0 0 3px rgba(23, 93, 140, 0.12);
        outline: none;
        background: #fff;
    }

.captcha-error {
    color: #d9534f;
    font-size: 0.8rem;
    min-height: 18px;
    margin-bottom: 10px;
    display: none;
}

/* ─── OTP section ─── */
.otp-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #175d8c;
    text-align: center;
    margin-bottom: 6px;
}

.otp-subtext {
    font-size: 0.82rem;
    color: #666;
    text-align: center;
    margin-bottom: 22px;
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 8px;
}

.otpClass {
    width: 44px;
    height: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    border: 1.5px solid #d0dde8;
    border-radius: 8px;
    background: #f8fbff;
    color: #175d8c;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
    flex-shrink: 0;
}

    .otpClass:focus {
        border-color: #175d8c;
        box-shadow: 0 0 0 3px rgba(23, 93, 140, 0.12);
        outline: none;
        background: #fff;
    }

    .otpClass::-webkit-inner-spin-button,
    .otpClass::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.otp-error {
    color: #d9534f;
    font-size: 0.82rem;
    text-align: center;
    min-height: 20px;
    margin-bottom: 14px;
}

/* ─── Divider ─── */
.form-divider {
    height: 1px;
    background: #e8eef3;
    margin: 6px 0 20px;
}

/* ─── Overlay & Spinner ─── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    display: none;
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none;
}

.spinner {
    width: 52px;
    height: 52px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top: 2.5px solid #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Footer ─── */
footer {
    background: transparent;
    padding: 14px 0;
    margin-top: auto;
}

    footer p {
        font-size: 0.78rem;
        color: rgba(255,255,255,0.75);
        margin: 0;
        text-align: center;
    }

    footer a {
        color: #a8d4f5;
        text-decoration: none;
    }

        footer a:hover {
            color: #fff;
            text-decoration: underline;
        }

/* ─── Responsive: ≤ 767px ─── */
@media (max-width: 767.98px) {
    main {
        padding: 16px 12px;
    }

    .login-card {
        border-radius: 14px;
    }

    .login-card-img-col {
        display: none !important;
    }

    .card-body {
        padding: 32px 24px;
    }

    .brand-wrapper {
        margin-bottom: 20px;
    }

        .brand-wrapper .logo {
            max-width: 180px;
        }

    .otp-boxes {
        gap: 7px;
    }

    .otpClass {
        width: 38px;
        height: 44px;
        font-size: 1.15rem;
        border-radius: 7px;
    }

    .captchaBox {
        width: 30px;
        height: 34px;
        font-size: 0.88rem;
    }

    .captcha-boxes {
        gap: 5px;
    }
}

/* ─── Responsive: very small (≤ 359px) ─── */
@media (max-width: 359px) {
    .card-body {
        padding: 24px 16px;
    }

    .otpClass {
        width: 33px;
        height: 40px;
        font-size: 1rem;
    }

    .otp-boxes {
        gap: 5px;
    }

    .captchaBox {
        width: 29px;
        height: 34px;
        font-size: 0.9rem;
    }
}