/* ============================================================
   GETACO LOGIN PAGE
   ============================================================ */


/* ------------------------------------------------------------
   GLOBAL RESET
   ------------------------------------------------------------ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}


html {
    width: 100%;
    min-height: 100%;
}


body {

    min-height: 100vh;
    width: 100%;

    background:
        linear-gradient(
            rgba(37, 99, 235, 0.80),
            rgba(30, 64, 175, 0.88)
        ),
        url("../images/login-bg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    color: #1e293b;
}


/* ============================================================
   MAIN CONTAINER
   ============================================================ */

.container {

    width: 1200px;
    max-width: 100%;

    min-height: 680px;

    background: #ffffff;

    border-radius: 24px;

    overflow: hidden;

    display: flex;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.25);
}


/* ============================================================
   LEFT SIDE
   ============================================================ */

.left {

    flex: 1;

    min-width: 0;

    background:
        linear-gradient(
            rgba(37, 99, 235, 0.82),
            rgba(29, 78, 216, 0.90)
        ),
        url("../images/apartment.jpg");

    background-size: cover;
    background-position: center;

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px;
}


.overlay {

    width: 100%;
    max-width: 450px;
}


.overlay h1 {

    font-size: 55px;

    line-height: 1;

    margin-bottom: 18px;

    font-weight: 700;

    letter-spacing: -1px;
}


.overlay h2 {

    font-size: 30px;

    line-height: 1.35;

    margin-bottom: 20px;

    font-weight: 600;
}


.overlay p {

    font-size: 15px;

    line-height: 1.8;

    opacity: 0.92;

    margin-bottom: 32px;
}


.overlay ul {

    list-style: none;
}


.overlay li {

    margin-bottom: 16px;

    font-size: 16px;

    font-weight: 500;
}


/* ============================================================
   RIGHT SIDE
   ============================================================ */

.right {

    flex: 1;

    min-width: 0;

    background: #f8fafc;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px;
}


/* ============================================================
   LOGIN CARD
   ============================================================ */

.login-card {

    width: 100%;

    max-width: 430px;

    background: #ffffff;

    border-radius: 20px;

    padding: 38px 40px;

    border: 1px solid #edf2f7;

    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.08);
}


/* ------------------------------------------------------------
   HEADING
   ------------------------------------------------------------ */

.login-card h2 {

    color: #1e293b;

    font-size: 30px;

    line-height: 1.3;

    font-weight: 700;

    margin-bottom: 7px;

    letter-spacing: -0.4px;
}


.subtitle {

    color: #64748b;

    font-size: 14px;

    margin-bottom: 30px;
}


/* ============================================================
   INPUTS
   ============================================================ */

.input-group {

    width: 100%;

    margin-bottom: 20px;
}


.input-group label {

    display: block;

    color: #334155;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 8px;
}


.input-group input {

    width: 100%;

    height: 50px;

    border: 1px solid #dbe4ee;

    border-radius: 10px;

    background: #ffffff;

    color: #1e293b;

    padding: 0 15px;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.input-group input::placeholder {

    color: #94a3b8;
}


.input-group input:hover {

    border-color: #cbd5e1;
}


.input-group input:focus {

    border-color: #2563eb;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.11);
}


/* ============================================================
   PASSWORD
   ============================================================ */

.password-box {

    width: 100%;

    position: relative;
}


.password-box input {

    padding-right: 50px;
}


.eye-btn {

    position: absolute;

    right: 10px;
    top: 50%;

    width: 34px;
    height: 34px;

    transform: translateY(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: #64748b;

    font-size: 17px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.eye-btn:hover {

    background: #f1f5f9;

    color: #2563eb;
}


.eye-btn:focus {

    outline: none;

    background: #eff6ff;

    color: #2563eb;
}


/* ============================================================
   OPTIONS
   ============================================================ */

.options {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 2px;

    margin-bottom: 25px;

    font-size: 12px;

    color: #64748b;
}


.options label {

    display: flex;

    align-items: center;

    gap: 7px;

    cursor: pointer;

    white-space: nowrap;
}


.options input[type="checkbox"] {

    width: 15px;
    height: 15px;

    margin: 0;

    accent-color: #2563eb;

    cursor: pointer;
}


.options a {

    color: #2563eb;

    text-decoration: none;

    font-weight: 500;

    white-space: nowrap;

    transition: color 0.2s ease;
}


.options a:hover {

    color: #1d4ed8;

    text-decoration: underline;
}


/* ============================================================
   LOGIN BUTTON
   ============================================================ */

.login-btn {

    width: 100%;

    height: 50px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.20);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.login-btn:hover {

    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 10px 24px rgba(37, 99, 235, 0.25);
}


.login-btn:active {

    transform: translateY(0);

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.18);
}


.login-btn:focus {

    outline: none;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.14),
        0 8px 20px rgba(37, 99, 235, 0.20);
}


/* ============================================================
   DIVIDER
   ============================================================ */

.divider {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 14px;

    margin: 27px 0;

    color: #94a3b8;

    font-size: 11px;

    font-weight: 500;
}


.divider::before,
.divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: #e2e8f0;
}


.divider span {

    flex-shrink: 0;
}


/* ============================================================
   REGISTER BUTTON
   ============================================================ */

.register-btn {

    width: 100%;

    min-height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border: 1px solid #bfdbfe;

    border-radius: 10px;

    background: #eff6ff;

    color: #2563eb;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.register-btn:hover {

    background: #dbeafe;

    border-color: #93c5fd;

    color: #1d4ed8;

    transform: translateY(-1px);
}


.register-btn:active {

    transform: translateY(0);
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 950px) {

    body {

        padding: 25px;
    }


    .container {

        width: 100%;

        max-width: 600px;

        min-height: auto;

        flex-direction: column;
    }


    /*
       Your .left is currently commented out in HTML,
       so the login section naturally becomes the main view.
    */

    .right {

        width: 100%;

        min-height: 650px;

        padding: 40px 25px;
    }


    .login-card {

        width: 100%;

        max-width: 460px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    html,
    body {

        min-height: 100%;

        width: 100%;
    }


    body {

        padding: 0;

        background:
            linear-gradient(
                rgba(37, 99, 235, 0.90),
                rgba(30, 64, 175, 0.94)
            ),
            url("../images/login-bg.jpg");

        background-size: cover;

        background-position: center;
    }


    .container {

        width: 100%;

        max-width: none;

        min-height: 100vh;

        border-radius: 0;

        box-shadow: none;

        background: #f8fafc;
    }


    .right {

        width: 100%;

        min-height: 100vh;

        padding: 25px 18px;

        display: flex;

        align-items: center;

        justify-content: center;
    }


    .login-card {

        width: 100%;

        max-width: 430px;

        padding: 28px 20px;

        border-radius: 18px;

        box-shadow:
            0 15px 45px rgba(15, 23, 42, 0.12);
    }


    .login-card h2 {

        font-size: 25px;

        text-align: center;
    }


    .subtitle {

        text-align: center;

        font-size: 13px;

        margin-bottom: 26px;
    }


    .input-group {

        margin-bottom: 18px;
    }


    .input-group label {

        font-size: 12px;
    }


    .input-group input {

        height: 48px;

        font-size: 13px;

        border-radius: 9px;

        padding-left: 13px;
    }


    .password-box input {

        padding-right: 48px;
    }


    .eye-btn {

        right: 8px;

        width: 32px;
        height: 32px;
    }


    .options {

        font-size: 11px;

        margin-bottom: 22px;

        gap: 10px;
    }


    .options label {

        gap: 5px;
    }


    .options input[type="checkbox"] {

        width: 14px;
        height: 14px;
    }


    .login-btn {

        height: 48px;

        font-size: 14px;

        border-radius: 9px;
    }


    .divider {

        margin: 24px 0;

        font-size: 10px;
    }


    .register-btn {

        min-height: 46px;

        font-size: 13px;

        border-radius: 9px;
    }
}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 380px) {

    .right {

        padding: 18px 12px;
    }


    .login-card {

        padding: 24px 16px;

        border-radius: 16px;
    }


    .login-card h2 {

        font-size: 22px;
    }


    .subtitle {

        font-size: 12px;

        margin-bottom: 22px;
    }


    .input-group input {

        height: 46px;

        font-size: 12px;
    }


    .options {

        font-size: 10px;
    }


    .login-btn {

        height: 46px;

        font-size: 13px;
    }


    .register-btn {

        min-height: 44px;

        font-size: 12px;
    }
}




/* =========================================================
   LOGIN OTP MODAL
   ========================================================= */

.otp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);

    backdrop-filter: blur(5px);
}


.otp-modal {
    position: relative;

    width: 100%;
    max-width: 400px;

    background: #ffffff;

    border-radius: 22px;

    padding: 32px 24px 26px;

    text-align: center;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

    animation: otpModalIn 0.2s ease-out;
}


@keyframes otpModalIn {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


.otp-close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 34px;
    height: 34px;

    border: none;
    background: transparent;

    font-size: 27px;

    color: #777;

    cursor: pointer;
}


.otp-icon {

    width: 62px;
    height: 62px;

    margin: 0 auto 18px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f5ff;

    color: #315efb;

    font-size: 26px;
}


.otp-modal h2 {

    margin: 0 0 10px;

    font-size: 23px;

    font-weight: 700;

    color: #202020;
}


.otp-description {

    margin: 0 auto 24px;

    max-width: 330px;

    color: #707070;

    font-size: 14px;

    line-height: 1.6;
}


.otp-description strong {

    color: #222;

    word-break: break-word;
}


.otp-input-wrapper {

    display: flex;

    justify-content: center;

    margin-bottom: 10px;
}


#loginOtpInput {

    width: 100%;

    max-width: 260px;

    height: 58px;

    border: 1.5px solid #d7d7d7;

    border-radius: 12px;

    outline: none;

    text-align: center;

    letter-spacing: 9px;

    font-size: 24px;

    font-weight: 700;

    color: #222;

    padding-left: 9px;

    transition: border-color 0.2s,
                box-shadow 0.2s;
}


#loginOtpInput:focus {

    border-color: #315efb;

    box-shadow:
        0 0 0 3px rgba(49, 94, 251, 0.10);
}


.otp-error {

    min-height: 20px;

    margin: 5px 0 8px;

    color: #d93025;

    font-size: 13px;
}


.otp-verify-button {

    width: 100%;

    height: 50px;

    border: none;

    border-radius: 12px;

    background: #315efb;

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: opacity 0.2s;
}


.otp-verify-button:hover {
    opacity: 0.92;
}


.otp-verify-button:disabled {

    opacity: 0.55;

    cursor: not-allowed;
}


.otp-help {

    margin: 15px 0 0;

    font-size: 12px;

    color: #999;
}


@media (max-width: 480px) {

    .otp-modal {

        padding: 28px 18px 24px;

        border-radius: 19px;
    }

    #loginOtpInput {

        max-width: 240px;

        letter-spacing: 7px;
    }

}