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

:root {
    --navy-950: #020b1f;
    --navy-900: #04132f;
    --navy-850: #061a3d;
    --navy-800: #09224d;

    --green: #35d267;
    --green-hover: #48de75;
    --purple: #9368ed;

    --white: #ffffff;
    --muted: #aebbd2;
    --border: rgba(255, 255, 255, 0.13);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--white);
    background: var(--navy-900);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

/* =========================================================
   PAGE LAYOUT
========================================================= */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(520px, 1.08fr)
        minmax(460px, 0.92fr);
}

/* =========================================================
   LEFT IMAGE PANEL
========================================================= */

.brand-panel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding:
        42px
        clamp(48px, 6vw, 96px)
        38px;
}

.brand-background,
.brand-overlay {
    position: absolute;
    inset: 0;
}

.brand-background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.brand-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(2, 11, 31, 0.98) 0%,
            rgba(4, 19, 47, 0.93) 48%,
            rgba(4, 19, 47, 0.7) 100%
        ),
        linear-gradient(
            180deg,
            rgba(2, 11, 31, 0.08) 0%,
            rgba(2, 11, 31, 0.52) 100%
        );
}

.brand-panel::after {
    content: "";
    position: absolute;
    left: 23%;
    top: 22%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(53, 210, 103, 0.14),
            transparent 68%
        );
    pointer-events: none;
}

.login-header,
.brand-content,
.brand-slogan {
    position: relative;
    z-index: 2;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.login-logo {
    display: inline-flex;
    align-items: center;
}

.login-logo img {
    width: 205px;
    height: auto;
    display: block;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 750;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.back-link:hover {
    color: var(--white);
    transform: translateX(-3px);
}

.brand-content {
    width: min(650px, 100%);
    margin: auto 0;
    padding: 70px 0;
}

.brand-eyebrow,
.form-eyebrow {
    color: var(--green);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-content h1 {
    max-width: 650px;
    margin-top: 19px;
    color: var(--white);
    font-size: clamp(54px, 5.2vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.058em;
}

.brand-content h1 span {
    color: var(--green);
}

.brand-description {
    max-width: 575px;
    margin-top: 29px;
    color: rgba(226, 234, 247, 0.77);
    font-size: 16px;
    line-height: 1.72;
}

.brand-slogan {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand-slogan {
    color: #ffffff;
}

.brand-slogan span {
    color: #35d267;
}

.brand-slogan em {
    color: #9b7cff;
    font-style: normal;
}

/* =========================================================
   RIGHT FORM PANEL
========================================================= */

.form-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding:
        42px
        clamp(48px, 6vw, 96px)
        30px;
    background:
        radial-gradient(
            circle at 85% 8%,
            rgba(53, 210, 103, 0.09),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            var(--navy-850),
            var(--navy-900)
        );
}

.form-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8%;
    bottom: 8%;
    width: 1px;
    background:
        linear-gradient(
            transparent,
            rgba(255, 255, 255, 0.14),
            transparent
        );
}

.mobile-header {
    display: none;
}

.login-card {
    width: min(460px, 100%);
    margin: auto;
}

.login-introduction {
    margin-bottom: 36px;
}

.login-introduction h2 {
    margin-top: 12px;
    color: var(--white);
    font-size: clamp(46px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.login-introduction > p:last-child {
    margin-top: 15px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

/* =========================================================
   LOGIN FORM
========================================================= */

.login-form {
    display: grid;
    gap: 23px;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    color: #f1f5fb;
    font-size: 12px;
    font-weight: 750;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 2;
    color: #8797b1;
    font-size: 14px;
    font-weight: 850;
    transform: translateY(-50%);
    pointer-events: none;
}

.password-icon {
    font-size: 8px;
}

.input-wrapper input {
    width: 100%;
    height: 58px;
    padding: 0 72px 0 50px;
    color: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.13);
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #8493aa;
}

.input-wrapper input:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.input-wrapper input:focus {
    border-color: var(--green);
    background: rgba(255, 255, 255, 0.09);
    box-shadow:
        0 0 0 4px rgba(53, 210, 103, 0.12),
        0 15px 38px rgba(0, 0, 0, 0.16);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    padding: 7px;
    color: #a9b6c9;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--white);
}

.login-button {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
    color: var(--navy-950);
    border: 0;
    border-radius: 13px;
    background: var(--green);
    box-shadow:
        0 18px 38px rgba(53, 210, 103, 0.23);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.login-button span {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.login-button:hover {
    background: var(--green-hover);
    box-shadow:
        0 21px 44px rgba(53, 210, 103, 0.3);
    transform: translateY(-2px);
}

.login-button:hover span {
    transform: translateX(4px);
}

.login-button:active {
    transform: translateY(0);
}

/* =========================================================
   ACCOUNT AND FOOTER
========================================================= */

.account-prompt {
    margin-top: 29px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
}

.account-prompt span {
    color: #96a5bc;
}

.account-prompt a {
    margin-left: 5px;
    color: var(--green);
    font-weight: 850;
}

.account-prompt a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.secure-message {
    margin-top: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #8190a8;
    font-size: 11px;
}

.secure-icon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: var(--green);
    border-radius: 50%;
    background: rgba(53, 210, 103, 0.12);
    font-size: 10px;
    font-weight: 900;
}

.form-footer {
    width: min(460px, 100%);
    margin: 52px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #72819a;
    font-size: 11px;
}

.form-footer div {
    display: flex;
    gap: 20px;
}

.form-footer a:hover {
    color: var(--white);
}

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

@media (max-width: 1050px) {

    .login-page {
        grid-template-columns:
            minmax(430px, 0.95fr)
            minmax(430px, 1.05fr);
    }

    .brand-panel,
    .form-panel {
        padding-left: 45px;
        padding-right: 45px;
    }

    .brand-content h1 {
        font-size: clamp(48px, 5.8vw, 66px);
    }

}

@media (max-width: 820px) {

    .login-page {
        display: block;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;
        justify-content: flex-start;
        padding: 24px 26px 30px;
    }

    .form-panel::before {
        display: none;
    }

    .mobile-header {
        width: min(500px, 100%);
        margin: 0 auto 52px;
        display: block;
    }

    .mobile-logo img {
        width: 185px;
        height: auto;
        display: block;
    }

    .login-card,
    .form-footer {
        width: min(500px, 100%);
    }

    .login-introduction h2 {
        font-size: 50px;
    }

}

@media (max-width: 500px) {

    .form-panel {
        padding: 20px;
    }

    .mobile-header {
        margin-bottom: 43px;
    }

    .mobile-logo img {
        width: 165px;
    }

    .login-introduction {
        margin-bottom: 30px;
    }

    .login-introduction h2 {
        font-size: 42px;
    }

    .input-wrapper input {
        height: 56px;
    }

    .form-footer {
        margin-top: 43px;
    }

}

@media (max-height: 760px) and (min-width: 821px) {

    .brand-panel,
    .form-panel {
        padding-top: 28px;
        padding-bottom: 25px;
    }

    .brand-content {
        padding: 42px 0;
    }

    .brand-content h1 {
        font-size: clamp(45px, 4.5vw, 64px);
    }

    .brand-description {
        margin-top: 21px;
    }

    .login-introduction {
        margin-bottom: 27px;
    }

    .login-introduction h2 {
        font-size: 46px;
    }

    .login-form {
        gap: 18px;
    }

    .form-footer {
        margin-top: 35px;
    }

}