:root {
    --navy: #071b41;
    --navy-2: #0b2452;
    --blue: #1557f6;
    --blue-2: #3134d0;
    --cyan: #1b9cff;
    --page: #f5f8ff;
    --text: #0b1736;
    --muted: #687596;
    --border: #dfe5f1;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    background: var(--page);
    color: var(--text);
    overflow-x: hidden;
}

.login-page {
    min-height: 100vh;
    display: flex;
    background: #f6f8ff;
    overflow: hidden;
}

.left-panel {
    position: relative;
    width: 58%;
    min-height: 100vh;
    z-index: 1;
    color: #fff;
    isolation: isolate;
    padding-right: 160px;
    background:
    linear-gradient(180deg, rgb(2 19 54 / 70%), rgb(2 19 54 / 20%)),
    url('../img/login-etco/login-bg-new.webp') center center / cover no-repeat,
    linear-gradient(135deg, #061a42 0%, #173b83 52%, #071b41 100%);
}

.left-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 80% 20%, rgba(35, 125, 255, .20), transparent 30%),
        linear-gradient(90deg, rgba(3, 20, 52, .38), transparent 60%);
    pointer-events: none;
}

.left-panel .curve-cut {
    position: absolute;
    z-index: 3;
    top: 0;
    right: -175px;
    bottom: 0;
    width: 52%;
    background-image: url('../img/login-etco/login-center-shape.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.brand {
    position: relative;
    z-index: 10;
    padding: clamp(20px, 2.5vw, 40px) clamp(20px, 2.5vw, 40px) 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    max-width: clamp(220px,15vw,240px);
    width: 100%;
    max-height: 55px;
    flex: 0 0 auto;
    object-fit: contain;
}

.hero-copy {
    position: relative;
    z-index: 10;
    max-width: 590px;
    margin: clamp(30px, 5vw, 80px)  clamp(20px, 2.5vw, 40px) 0 clamp(20px, 2.5vw, 40px);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.04;
    font-weight: 700;
    color: var(--white);
}

.hero-copy h1 span {
    background: linear-gradient(90deg, #13245A, #083ae7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: clamp(10px,1.5vw,20px) 0 0;
    font-size: clamp(16px,1.5vw,20px);
    line-height: 1.4;
    color: rgba(255, 255, 255, .94);
}

.hero-line {
    width: 78px;
    height: 5px;
    border-radius: 50px;
    margin: clamp(16px,2vw,25px) 0 clamp(16px,2vw,25px);
    background: linear-gradient(90deg, #1397ff, #0f6dff);
}

.hero-description {
    max-width: 500px;
    font-size: clamp(14px,1.5vw,17px);
    line-height: 1.5;
    color: rgba(255, 255, 255, .90);
    margin: 0;
}

/* Feature cards */
.features {
    position: absolute;
    z-index: 10;
    left: clamp(20px, 2.5vw, 40px);
    right: 160px;
    bottom: 40px;
    max-width: 650px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.feature-card {
    padding: 20px 16px 18px;
    text-align: center;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(145deg,
            rgba(35, 66, 119, .74),
            rgba(5, 25, 65, .68));
    box-shadow:
        0 20px 45px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    font-size: 27px;
    background: linear-gradient(145deg, #2c7bff, #3150dc);
    box-shadow: 0 10px 24px rgba(20, 88, 245, .25);
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(145deg, #18a777, #0b8765);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(145deg, #8d45e9, #6230ca);
}

.feature-card h3 {
    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 10px;
    font-weight: 750;
    color: var(--white);
}

.feature-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .76);
}

.feature-card .accent {
    width: 55px;
    height: 3px;
    border-radius: 50px;
    margin: 17px auto 0;
    background: #50a9ff;
}

.feature-card:nth-child(2) .accent {
    background: #22c79c;
}

.feature-card:nth-child(3) .accent {
    background: #8c5bff;
}

/* =========================================================
    RIGHT SIDE
========================================================= */
.right-panel {
    position: relative;
    width: 100%;
    max-width: 46%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 2.5vw, 40px);
    background: #f7f9ff;
}

/* CSS dot pattern */
.top-dot-pattern {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: 330px;
    height: 300px;
    pointer-events: none;
    opacity: .95;

    background-image: radial-gradient(circle,
            rgba(37, 99, 235, .19) 1.8px,
            transparent 2.5px);
    background-size: 16px 16px;

    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%,
            #000 0%,
            rgba(0, 0, 0, .92) 25%,
            rgba(0, 0, 0, .55) 52%,
            transparent 82%);
    mask-image: radial-gradient(ellipse 100% 100% at 100% 0%,
            #000 0%,
            rgba(0, 0, 0, .92) 25%,
            rgba(0, 0, 0, .55) 52%,
            transparent 82%);
}

.bottom-glow {
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, .07);
    box-shadow:
        0 0 0 45px rgba(37, 99, 235, .025),
        0 0 0 90px rgba(37, 99, 235, .018);
    pointer-events: none;
}

.login-content {
    position: relative;
    z-index: 5;
    width: min(100%, 520px);
}

.login-card {
    position: relative;
    width: 100%;
    padding: 55px clamp(20px,3vw,40px) clamp(20px,3vw,40px);
    border-radius: 20px;
    border: 1px solid rgba(220, 226, 239, .8);
    background: rgba(255, 255, 255, .94);
    box-shadow:
        0 25px 70px rgba(23, 48, 101, .11),
        0 7px 24px rgba(23, 48, 101, .05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.security-badge {
    position: absolute;
    top: clamp(-42.5px, -3.5vw, -22.5px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(45px,7vw,85px);
    height: clamp(45px,7vw,85px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #1557f6;
    box-shadow: 0 5px 15px rgb(35 64 124 / 8%), 0 0 0 1px rgb(225 231 242 / 25%);
}
.security-badge svg{
    width: clamp(25px,3.5vw,45px);
    height: clamp(25px,3.5vw,45px);
}

.login-title {
    text-align: center;
    margin: 0;
    color: var(--text);
    font-size: clamp(22px, 2.7vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.2px;
    font-weight: 700;
}

.login-subtitle {
    text-align: center;
    color: #687596;
    font-size: clamp(12px,1.5vw,16px);
    margin: 12px 0 clamp(25px,2vw,40px);
}

.input-group-modern {
    position: relative;
    height: clamp(38px,5vw,55px);
}

.input-group-modern .form-control {
    width: 100%;
    height: 100%;
    padding: 0 15px 0 50px;
    border: 1px solid var(--border);
    border-radius: 10px !important;
    color: var(--text);
    font-size: 15px;
    background: rgba(255, 255, 255, .78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    transition: .2s ease;
}
.input-group-modern .form-control[type="password"],
.input-group-modern .form-control#password{
    padding: 0 50px 0 50px;
}

.input-group-modern .form-control:focus {
    box-shadow: none !important;
}

.input-icon {
    position: absolute;
    z-index: 6;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #43557d;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    z-index: 6;
    top: 0;
    right: 5px;
    width: 40px;
    height: 100%;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #283962;
    font-size: 17px;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--blue);
    background: #f7f9ff;
}

.form-control::placeholder {
    color: #9aa5bf;
    opacity: 1;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 37px;
    font-size: 15px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3d63;
    cursor: pointer;
}

.remember input {
    width: 18px;
    height: 18px;
    accent-color: #1557f6;
    cursor: pointer;
}

.forgot {
    color: #0d54ed;
    font-weight: 600;
    text-decoration: none;
}

.forgot:hover {
    text-decoration: underline;
}

.sign-in-btn {
    width: 100%;
    height: 65px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(105deg, #0f61f7 0%, #3130ce 100%);
    box-shadow:
        0 14px 26px rgba(27, 80, 232, .24),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: .2s ease;
}

.sign-in-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 34px rgba(27, 80, 232, .31),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.sign-in-btn i {
    margin-left: 13px;
    font-size: 22px;
    vertical-align: -1px;
}

.or-divider {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 39px 0 25px;
    color: #687596;
    font-size: 14px;
    white-space: nowrap;
}

.or-divider::before,
.or-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #dfe5ef;
}

.social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.social-btn {
    height: 66px;
    border: 1px solid #e2e7f0;
    border-radius: 13px;
    background: #fff;
    color: #111a35;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 17px;
    font-weight: 500;
    box-shadow: 0 7px 18px rgba(20, 40, 80, .055);
    transition: .2s ease;
}

.social-btn:hover {
    transform: translateY(-1px);
    border-color: #cbd5e8;
    box-shadow: 0 10px 24px rgba(20, 40, 80, .09);
}

.google-icon {
    width: 28px;
    height: 28px;
}

.microsoft-icon {
    width: 28px;
    height: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

.microsoft-icon span:nth-child(1) {
    background: #f25022;
}

.microsoft-icon span:nth-child(2) {
    background: #7fba00;
}

.microsoft-icon span:nth-child(3) {
    background: #00a4ef;
}

.microsoft-icon span:nth-child(4) {
    background: #ffb900;
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 37px;
    color: #687596;
    font-size: 15px;
}

.secure-note i {
    color: #1557f6;
    font-size: 22px;
}

/* =========================================================
    TABLET
========================================================= */
@media (max-width: 1299.98px) {
    .left-panel {
        width: 55%;
    }
    .right-panel {
        max-width: 45%;
    }
    .left-panel .curve-cut {
        right: -305px;
        width: 100%;
        background-size: contain;
    }
}
@media (max-width: 1099.98px) {
    .left-panel {
        width: 52%;
    }
    .right-panel {
        max-width: 48%;
    }
    .left-panel .curve-cut {
        right: -245px;
        width: 100%;
        background-size: contain;
    }
    .feature-card {
        padding: 15px 12px 15px;
        border-radius: 15px;
    }
    .feature-card h3 {
        font-size: 12px;
        line-height: 1.25;
        margin: 0 0 8px;
    }
    .feature-card p {
        font-size: 10px;
        line-height: 1.35;
    }
    .feature-card .accent {
        margin: 10px auto 0;
    }
    .feature-icon {
        width: 35px;
        height: 35px;
        margin: 0 auto 10px;
        border-radius: 8px;
    }
    .feature-icon svg{
        width: 20px;
        height: 20px;
    }
    .features {
        right: 50px;
        bottom: 15px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .login-page {
        min-height: auto;
        display: block;
    }
    .left-panel {
        width: 100%;
        height: 55vh;
        min-height: unset;
        padding-right: 0;
        background: linear-gradient(180deg, rgb(159 190 255 / 74%) 0%, rgb(2 19 54 / 10%)) 20%, url(../img/login-etco/login-bg-new.webp) center center / cover no-repeat, linear-gradient(135deg, #061a42 0%, #173b83 52%, #071b41 100%);
    }
    .features{
        display: none;
    }
    .right-panel {
        width: 100%;
        max-width: 100%;
        height: 45vh;
        min-height: unset;
        padding: clamp(20px, 2.5vw, 40px);
    }
    .top-dot-pattern {
        z-index: 1;
    }
    .left-panel .curve-cut {
        right: 0;
        width: 50%;
        background-size: contain;
        transform: rotate(90deg);
        left: 248px;
        min-height: calc(100vh + 200px);
        top: -10px;
    }
    .bottom-glow {
        right: unset;
        left: -100px;
        bottom: -50px;
        width: 240px;
        z-index: 1;
        height: 240px;
    }
    .login-content {
        z-index: 5;
        margin-top: -200px;
        min-height: 60vh;
        display: flex;
    }
    .login-title {
        font-size: clamp(22px, 5vw, 34px);
        line-height: 1.2;
    }
    .login-subtitle {
        font-size: clamp(12px, 2vw, 16px);
        margin: 12px 0 clamp(25px, 4vw, 40px);
    }
    .input-group-modern {
        height: clamp(42px, 7vw, 55px);
    }
    .security-badge {
        top: clamp(-42.5px, -4vw, -22.5px);
        transform: translateX(-50%);
        width: clamp(45px, 8vw, 85px);
        height: clamp(45px, 8vw, 85px);
    }
    .security-badge svg{
        width: clamp(25px,4vw,45px);
        height: clamp(25px,4vw,45px);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) and (max-height: 800px) {
    .left-panel .curve-cut {
        width: 60%;
        left: 200px;
        min-height: calc(100vw + 200px);
        top: -140px;
    }
    .login-content {
        margin-top: -100px;
    }
}

/* =========================================================
    MOBILE
========================================================= */
@media (max-width: 767.98px) {
    .login-content {
        z-index: 5;
        margin-top: -353px;
        min-height: 45vh;
        display: flex;
    }
    .left-panel .curve-cut {
        left: 185px;
    }
    .security-badge {
        top: clamp(-42.5px, -4vw, -27.5px);
        transform: translateX(-50%);
        width: clamp(55px, 8vw, 85px);
        height: clamp(55px, 8vw, 85px);
    }
}

@media (max-width: 575.98px) {
    .right-panel {
        padding: 15px;
    }
    .login-options {
        font-size: 14px;
    }
    .login-card {
        padding: 40px clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px);
    }

    .login-content {
        z-index: 5;
        min-height: 45vh;
        display: flex;
    }
    .left-panel .curve-cut {
        left: 110px;
        top: 15px;
    }
    .input-group-modern .form-control {
        padding: 0 15px 0 40px;
    }
    .input-group-modern .form-control[type="password"], 
    .input-group-modern .form-control#password {
        padding: 0 40px 0 40px;
    }
    .input-icon {
        font-size: 18px;
    }
    .password-toggle {
        right: 0;
    }
}
@media (max-width: 474.98px) {
    .login-content {
        z-index: 5;
        min-height: 45vh;
        display: flex;
        margin-top: -280px;
    }
    .left-panel .curve-cut {
        left: 90px;
        top: -22px;
    }
}
@media (max-width: 767.98px) and (max-height: 800px) {
.login-content{
        z-index: 5;
        margin-top: -200px;
    }
}
