/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8faff;
    color: #0d1b42;
}


/* =========================================================
   MAIN LOGIN LAYOUT
========================================================= */

.login-page {
    width: 100%;
    min-height: 100vh;

    display: flex;

    overflow: hidden;
}


/* =========================================================
   LEFT SIDE
========================================================= */

.login-visual {
    width: 50%;
    min-height: 100vh;

    position: relative;

    background-image:
        linear-gradient(
            90deg,
            rgba(0, 43, 127, 0.95) 0%,
            rgba(0, 43, 127, 0.73) 42%,
            rgba(0, 43, 127, 0.18) 100%
        ),
        url('/images/atp-login-building.png');

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    overflow: hidden;
}


/* DARK BOTTOM OVERLAY */

.login-visual::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 32, 92, 0.88) 0%,
            rgba(0, 32, 92, 0.30) 35%,
            transparent 60%
        );

    pointer-events: none;

    z-index: 1;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.visual-content {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    padding: 45px 60px;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   LOGO
========================================================= */

.visual-logo {
    margin-bottom: 55px;
}

.visual-logo img {
    width: 265px;
    max-width: 100%;
    height: auto;

    display: block;
}


/* =========================================================
   LEFT MAIN CONTENT
========================================================= */

.visual-main {
    position: relative;
}


.small-line {
    width: 52px;
    height: 3px;

    background: #ffffff;

    margin-bottom: 27px;
}


.portal-label {
    color: #ffffff;

    text-transform: uppercase;
    letter-spacing: 6px;

    font-size: 16px;
    font-weight: 600;

    margin-bottom: 18px;
}


.visual-title {
    color: #ffffff;

    font-size: clamp(42px, 4vw, 62px);
    line-height: 1.05;
    font-weight: 700;

    max-width: 480px;

    margin: 0 0 28px;
}


.visual-description {
    color: rgba(255, 255, 255, 0.95);

    font-size: 20px;
    line-height: 1.55;

    max-width: 440px;

    margin: 0;
}


/* =========================================================
   LEFT FOOTER
========================================================= */

.visual-footer {
    margin-top: auto;

    padding-bottom: 5px;
}


.visual-footer-line {
    width: 53px;
    height: 3px;

    background: #ffffff;

    margin-bottom: 23px;
}


.visual-footer-text {
    color: rgba(255, 255, 255, 0.90);

    text-transform: uppercase;

    letter-spacing: 5px;

    font-size: 12px;
    font-weight: 500;

    white-space: nowrap;
}


/* =========================================================
   RIGHT SIDE
========================================================= */

.login-form-side {
    width: 50%;
    min-height: 100vh;

    position: relative;

    display: flex;
    flex-direction: column;

    padding: 35px 55px 25px;

    background:
        radial-gradient(
            circle at 82% 42%,
            rgba(218, 231, 255, 0.58) 0%,
            rgba(240, 246, 255, 0.28) 30%,
            transparent 58%
        ),
        #fafcff;

    /*
        IMPORTANT:
        This prevents the world map from creating
        horizontal scrolling when right:-100px is used.
    */
    overflow: hidden;
}


/* =========================================================
   WORLD MAP
========================================================= */

.login-form-side::before {
    content: "";

    position: absolute;

    /*
        Reference image has the map on the
        far-right side of the login panel.
    */
    top: 17%;
    right: -115px;

    width: 520px;
    height: 560px;

    background-image: url('/public/images/world-map.png');

    background-repeat: no-repeat;

    background-position: center right;

    background-size: contain;

    /*
        Keep it subtle but still visible.
    */
    opacity: 1.20;

    z-index: 0;

    pointer-events: none;
}


/* =========================================================
   ENSURE CONTENT IS ABOVE WORLD MAP
========================================================= */

.login-top,
.login-center,
.login-footer {
    position: relative;
    z-index: 2;
}


/* =========================================================
   TOP RIGHT
========================================================= */

.login-top {
    display: flex;

    justify-content: flex-end;
    align-items: center;

    gap: 20px;

    min-height: 48px;
}


.new-user-text {
    color: #15213e;

    font-size: 14px;
}


.website-btn {
    min-height: 42px;

    padding: 9px 20px;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    border: 1px solid #0d6efd;

    border-radius: 7px;

    color: #0867d9;

    background: rgba(255, 255, 255, 0.94);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


.website-btn:hover {
    background: #0867d9;

    color: #ffffff;

    box-shadow:
        0 5px 15px rgba(8, 103, 217, 0.18);
}


/* =========================================================
   LOGIN CENTER
========================================================= */

.login-center {
    flex: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px 0;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    width: 100%;

    max-width: 545px;

    position: relative;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(225, 231, 243, 0.95);

    border-radius: 14px;

    padding: 47px 40px 30px;

    box-shadow:
        0 10px 35px rgba(30, 60, 110, 0.05);

    z-index: 3;
}


/* =========================================================
   CARD HEADINGS
========================================================= */

.welcome-small {
    color: #8a98b5;

    font-size: 26px;
    font-weight: 400;

    margin-bottom: 3px;
}


.login-card h1 {
    margin: 0 0 5px;

    color: #0b1d4d;

    font-size: 37px;
    font-weight: 700;
    line-height: 1.2;
}


.login-subtitle {
    margin: 0 0 32px;

    color: #7c89a6;

    font-size: 17px;
    line-height: 1.45;

    max-width: 400px;
}


/* =========================================================
   FORM
========================================================= */

.custom-form-group {
    margin-bottom: 22px;
}


.custom-label {
    display: block;

    margin-bottom: 8px;

    color: #17234d;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   INPUT
========================================================= */

.input-box {
    position: relative;
}


.input-box .left-icon {
    position: absolute;

    top: 50%;
    left: 17px;

    transform: translateY(-50%);

    color: #71809f;

    font-size: 18px;

    z-index: 2;

    pointer-events: none;
}


.input-box input {
    width: 100%;
    height: 54px;

    border: 1px solid #d8dfec;

    border-radius: 7px;

    background: #ffffff;

    color: #192445;

    font-size: 15px;

    padding: 0 48px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.input-box input::placeholder {
    color: #9aa6bc;
}


.input-box input:focus {
    border-color: #0b6df6;

    box-shadow:
        0 0 0 3px rgba(11, 109, 246, 0.08);
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;

    right: 17px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: #71809f;

    cursor: pointer;

    padding: 4px;

    font-size: 19px;

    z-index: 3;
}


.password-toggle:hover {
    color: #0867d9;
}


/* =========================================================
   REMEMBER / FORGOT
========================================================= */

.login-options {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 2px;
    margin-bottom: 23px;
}


.remember-me {
    display: flex;

    align-items: center;

    gap: 9px;

    color: #31405f;

    font-size: 14px;

    cursor: pointer;
}


.remember-me input {
    width: 19px;
    height: 19px;

    accent-color: #0867eb;

    cursor: pointer;
}


.forgot-password {
    color: #0867df;

    font-size: 14px;

    text-decoration: none;
}


.forgot-password:hover {
    text-decoration: underline;
}


/* =========================================================
   SIGN IN BUTTON
========================================================= */

.login-btn {
    width: 100%;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 0;

    border-radius: 7px;

    background:
        linear-gradient(
            90deg,
            #0868e8 0%,
            #075bd4 100%
        );

    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

    box-shadow:
        0 5px 15px rgba(0, 89, 215, 0.16);
}


.login-btn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(0, 89, 215, 0.23);
}


.login-btn:active {
    transform: translateY(0);
}


.login-btn .arrow {
    font-size: 22px;

    line-height: 1;
}


/* =========================================================
   SECURITY INFO
========================================================= */

.security-info {
    border-top: 1px solid #e7ebf3;

    margin-top: 32px;

    padding-top: 21px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    color: #8895ae;

    font-size: 12px;
}


.security-info em {
    color: #7889aa;

    font-size: 16px;
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 10px;

    color: #65718b;

    font-size: 12px;
}


.footer-links {
    display: flex;

    align-items: center;

    gap: 17px;
}


.footer-links a {
    color: #4c5872;

    text-decoration: none;
}


.footer-links a:hover {
    color: #0867d9;
}


.footer-links span {
    color: #a6afc0;
}


/* =========================================================
   VALIDATION
========================================================= */

.validation-error {
    color: #dc3545;

    font-size: 12px;

    margin-top: 5px;
}


/* =========================================================
   RESPONSIVE - LAPTOP
========================================================= */

@media (max-width: 1300px) {

    .visual-content {
        padding: 40px 45px;
    }


    .login-form-side {
        padding: 30px 40px 25px;
    }


    .login-form-side::before {
        width: 450px;
        height: 520px;

        right: -120px;
    }


    .login-card {
        max-width: 520px;

        padding: 42px 35px 28px;
    }


    .visual-title {
        font-size: 54px;
    }
}


/* =========================================================
   RESPONSIVE - SMALL LAPTOP / TABLET LANDSCAPE
========================================================= */

@media (max-width: 1100px) {

    .visual-content {
        padding: 40px;
    }


    .login-form-side {
        padding: 30px;
    }


    .login-form-side::before {
        width: 390px;
        height: 470px;

        right: -125px;

        opacity: 0.08;
    }


    .login-card {
        padding: 40px 30px 28px;
    }


    .visual-title {
        font-size: 48px;
    }


    .visual-description {
        font-size: 18px;
    }


    .visual-footer-text {
        letter-spacing: 3px;
    }
}


/* =========================================================
   RESPONSIVE - TABLET / MOBILE
========================================================= */

@media (max-width: 850px) {

    .login-page {
        display: block;
    }


    .login-visual {
        display: none;
    }


    .login-form-side {
        width: 100%;

        min-height: 100vh;

        padding: 25px;
    }


    .login-form-side::before {
        width: 430px;
        height: 500px;

        top: 18%;

        right: -100px;

        opacity: 0.07;
    }


    .login-card {
        max-width: 560px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 576px) {

    .login-form-side {
        padding: 18px;
    }


    .login-form-side::before {
        width: 330px;
        height: 400px;

        top: 20%;

        right: -130px;

        opacity: 0.055;
    }


    .login-top {
        justify-content: flex-end;

        gap: 10px;
    }


    .website-btn {
        min-height: 38px;

        padding: 7px 14px;

        font-size: 13px;
    }


    .login-center {
        padding: 25px 0;
    }


    .login-card {
        padding: 32px 22px 25px;

        border-radius: 12px;
    }


    .welcome-small {
        font-size: 22px;
    }


    .login-card h1 {
        font-size: 29px;
    }


    .login-subtitle {
        font-size: 15px;

        margin-bottom: 27px;
    }


    .input-box input {
        height: 52px;
    }


    .login-btn {
        height: 54px;
    }


    .login-footer {
        flex-direction: column;

        text-align: center;

        gap: 8px;
    }
}