* {
    box-sizing: border-box;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.login-page {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    background: #00497a;
}

.login-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url("../../assetsmain/img/main-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    position: relative;
    width: min(770px, 94vw);
    height: auto;
    min-height: 170px;
    padding: 25px 28px;
    overflow: hidden;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.20);
}

.close-btn {
    position: absolute;
    top: 9px;
    right: 12px;
    z-index: 20;
    border: 0;
    background: transparent;
    color: #d7d7d7;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.close-btn:hover {
    color: #999;
}

.login-step {
    display: none;
    width: 100%;
}

.login-step.active {
    display: block;
}

.login-step h2 {
    margin: 0 0 13px;
    color: #111;
    font-size: 18px;
    font-weight: 700;
}

.login-step>label {
    display: block;
    margin-bottom: 5px;
    color: #777;
    font-size: 9px;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select,
.selected-value {
    width: 100%;
    height: 37px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background: #f7f7f7;
    color: #555;
    font-size: 10px;
}

.select-wrapper select {
    padding: 0 35px 0 12px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    background: url('data:image/svg+xml,<svg width="18" height="10" viewBox="0 0 18 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L9 9L17 1" stroke="%23DDDDDD" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    width: 18px;
    height: 10px;
}

.selected-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    position: relative;
}

.selected-value span {
    color: #ddd;
}

.section-title {
    position: absolute;
    color: #747474;
    font-size: 16px;
    text-align: center;
    font-family: 'Inter Medium';
    top: -10px;
    z-index: 10;
    background: #FFFFFF;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 15px;
    min-width: 250px;
}

.location-list {
    display: flex;
    position: relative;
    gap: 8px;
}

.location-items {
    display: flex;
    gap: 10px;
}

.location-action {
    width: 100%;
    height: 30px;
    background: #F8CB5D;
    border: 1px solid transparent;
    border-radius: 10px;
    text-transform: capitalize;
    font-family: 'Inter Semi Bold';
    cursor: pointer;
    margin-bottom: 2px;
}

.location-item {
    min-height: 58px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
    border: 2px solid #D9D9D9;
    flex-direction: column;
}

.location-item:hover {
    border-color: #D9D9D9;
}

.location-item.selected {
    color: #000000;
    background: #FFFBEB;
    border-color: #F8CB5D;
}

.location-item.selected:hover {
    border-color: #F8CB5D;
}

.location-logo,
.small-location-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #555;
    font-size: 7px;
    font-weight: 700;
}

.location-name {
    color: #747474;
    font-size: 8px;
    line-height: 1.35;
}

.location-item.selected .location-name {
    color: #000000;
}

.selected-location {
    width: 150px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ffb000;
    border-radius: 8px;
    background: #ffb000;
    font-size: 8px;
    line-height: 1.3;
}

.small-location-logo {
    width: 36px;
    height: 36px;
}

.application-title {
    min-width: 352px;
}

.application-list {
    display: flex;
    gap: 8px;
    position: relative;
    justify-content: center;
}

.application-item {
    min-height: 80px;
    padding: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
    min-width: 175px;
    gap: 10px;
}

.application-item:hover,
.application-item.selected {
    border-color: #F8CB5D;
}

.application-item.selected {
    color: #000000;
    background: #FFFBEB;
    border-color: #F8CB5D;
}

.app-icon {
    margin-bottom: 4px;
    font-size: 17px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.application-item strong {
    margin-bottom: 4px;
    font-size: 8px;
}

.application-item span {
    color: #888;
    font-size: 7px;
    line-height: 1.35;
}

.application-item.selected span {
    color: #000000;
}

.line-separator {
    border-left: 2px solid rgba(0, 0, 0, 0.07);
    height: 70px;
}

.login-form-step {
    width: min(100%, 340px);
    margin: 0 auto;
}

.login-form-step h2 {
    margin-bottom: 18px;
    font-size: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 12px;
}

.input-group input {
    width: 100%;
    height: 38px;
    padding: 0 35px 0 12px;
    border: 1px solid #E2E2E2;
    border-radius: 5px;
    outline: none;
    background: #F8F8F8;
    font-size: 10px;
    color: #000000;
}

.input-group input:focus {
    border-color: #E2E2E2;
    background: #F8F8F8;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 11px;
    transform: translateY(-50%);
}

.login-options {
    margin: 2px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 8px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #000000;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Inter';
}

.remember-me input {
    width: 11px;
    height: 11px;
    margin: 0;
    accent-color: #ffb000;
}

.forgot-password {
    color: #000000;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Inter';
}

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

.login-button {
    width: 100%;
    height: 38px;
    border: 0;
    border-radius: 20px;
    background: #ffb000;
    color: #111;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.login-button:hover {
    background: #f5a700;
}

.terms {
    max-width: 270px;
    margin: 14px auto 0;
    color: #999;
    font-size: 7px;
    line-height: 1.5;
    text-align: center;
}

.terms a {
    color: #0077cc;
    text-decoration: none;
}

.login-step.step-enter {
    animation: stepIn .35s ease forwards;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateX(25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ==========================================
   LEFT BRAND / FEATURE ACTIONS
========================================== */

.brand-panel {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.brand-content {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(380px, 38vw);
    transform: translate(-50%, -50%);
    margin-top: -4vh;
    text-align: left;
    color: #fff;
}

.brand-logo {
    margin-bottom: 8px;
    font-size: clamp(38px, 4.2vw, 62px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
}

.brand-logo span {
    color: #ffb000;
}

.brand-content h1 {
    margin: 0 0 8px;
    color: #ffb000;
    font-size: clamp(22px, 2.1vw, 32px);
    line-height: 1.1;
    font-weight: 800;
}

.brand-content p {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(13px, 1.05vw, 17px);
    line-height: 1.35;
}

.feature-icons {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.feature-icon {
    position: absolute;
    width: clamp(42px, 4.2vw, 68px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(73, 206, 255, .8);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(72, 212, 255, .55), rgba(0, 116, 210, .25) 55%, rgba(0, 71, 140, .12));
    box-shadow: 0 0 14px rgba(0, 174, 255, .65), inset 0 0 14px rgba(67, 216, 255, .25);
    color: #fff;
    opacity: .95;
    transform: translateZ(0);
    animation: featureFloat 4.5s ease-in-out infinite;
}

.feature-icon svg {
    width: 55%;
    height: 55%;
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, .6));
}

.feature-1 {
    left: 14%;
    top: 68%;
    animation-delay: -.6s;
}

.feature-2 {
    left: 25%;
    top: 57%;
    animation-delay: -2.1s;
}

.feature-3 {
    left: 38%;
    top: 65%;
    animation-delay: -1.2s;
}

.feature-4 {
    left: 28%;
    top: 79%;
    animation-delay: -3.3s;
}

.feature-5 {
    left: 54%;
    top: 80%;
    animation-delay: -.2s;
}

.feature-6 {
    left: 70%;
    top: 79%;
    animation-delay: -2.8s;
}

.feature-7 {
    left: 89%;
    top: 68%;
    animation-delay: -1.8s;
}

@keyframes featureFloat {

    0%,
    100% {
        margin-top: 0;
        filter: brightness(.96);
    }

    50% {
        margin-top: -9px;
        filter: brightness(1.12);
    }
}

@media (max-width: 900px) {
    .brand-content {
        width: min(360px, 44vw);
        left: 27%;
    }

    .feature-1 {
        left: 6%;
    }

    .feature-2 {
        left: 22%;
    }

    .feature-3 {
        left: 39%;
    }

    .feature-4 {
        left: 17%;
    }

    .feature-5 {
        left: 48%;
    }

    .feature-6 {
        left: 68%;
    }

    .feature-7 {
        left: 89%;
    }
}

@media (max-width: 768px) {
    .brand-content {
        left: 50%;
        top: 24%;
        width: min(440px, 84vw);
        transform: translate(-50%, -50%);
        margin-top: 0;
        text-align: center;
    }

    .brand-logo {
        font-size: clamp(34px, 10vw, 48px);
    }

    .brand-content h1 {
        font-size: clamp(20px, 5.5vw, 28px);
    }

    .brand-content p {
        font-size: clamp(12px, 3vw, 15px);
    }

    .feature-icon {
        width: 46px;
    }

    .feature-1 {
        left: 5%;
        top: 62%;
    }

    .feature-2 {
        left: 24%;
        top: 70%;
    }

    .feature-3 {
        left: 45%;
        top: 62%;
    }

    .feature-4 {
        left: 12%;
        top: 82%;
    }

    .feature-5 {
        left: 56%;
        top: 80%;
    }

    .feature-6 {
        left: 75%;
        top: 70%;
    }

    .feature-7 {
        left: 88%;
        top: 82%;
    }
}

@media (max-width: 480px) {
    .brand-content {
        top: 20%;
        width: 88vw;
    }

    .feature-icon {
        width: 38px;
        border-width: 1px;
    }
}

@media (max-width: 768px) {
    .login-card {
        width: min(600px, 94vw);
        padding: 22px 20px;
    }

    .location-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .application-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 12px;
    }

    .login-card {
        width: 100%;
        padding: 20px 14px;
        border-radius: 14px;
    }

    .location-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .location-item {
        min-height: 60px;
        padding: 5px;
        flex-direction: column;
    }

    .location-logo {
        width: 32px;
        height: 32px;
    }

    .application-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .application-item {
        min-height: 75px;
    }

    .login-form-step {
        width: 100%;
    }
}

@media (max-height: 600px) and (min-width: 769px) {
    .login-wrapper {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .login-card {
        padding-top: 18px;
        padding-bottom: 18px;
    }
}

/* ==========================================================
   DESKTOP: TRUE 50/50 LAYOUT
   Left = branding/features | Right = login wizard
   ========================================================== */
@media (min-width: 769px) {
    .brand-panel {
        position: absolute;
        top: 0;
        left: 0;
        right: auto;
        bottom: 0;
        width: 40%;
        height: 100%;
        z-index: 4;
        overflow: hidden;
        pointer-events: none;
    }

    .brand-content {
        position: absolute;
        top: 50%;
        left: 50%;
        width: min(380px, 72%);
        margin: 0;
        transform: translate(-50%, -50%);
    }

    .feature-icons {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    /* Keep all feature icons inside the left 50% panel. */
    .feature-1 {
        left: 10%;
        top: 68%;
    }

    .feature-2 {
        left: 31%;
        top: 57%;
    }

    .feature-3 {
        left: 55%;
        top: 64%;
    }

    .feature-4 {
        left: 27%;
        top: 79%;
    }

    .feature-5 {
        left: 76%;
        top: 79%;
    }

    .feature-6 {
        left: 63%;
        top: 68%;
    }

    .feature-7 {
        left: 91%;
        top: 67%;
    }

    .login-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 60%;
        height: 100%;
        padding: 24px;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .login-form-step {
        width: min(100%, 340px);
    }
}

/* Smaller desktop/tablet: preserve the 50/50 relationship until mobile. */
@media (min-width: 769px) and (max-width: 1100px) {
    .login-wrapper {
        padding: 18px;
    }

    .login-card {
        width: min(500px, 100%);
        padding: 22px 20px;
    }

    .brand-content {
        width: min(340px, 78%);
    }

    .brand-logo {
        font-size: clamp(34px, 5vw, 50px);
    }

    .brand-content h1 {
        font-size: clamp(20px, 2.7vw, 28px);
    }

    .brand-content p {
        font-size: clamp(11px, 1.35vw, 15px);
    }

    .location-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .application-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================
   MOBILE: stack branding above login
   ========================================================== */
@media (max-width: 768px) {
    .brand-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 42%;
        overflow: hidden;
    }

    .brand-content {
        left: 50%;
        top: 50%;
        width: min(440px, 84vw);
        margin: 0;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .login-wrapper {
        position: absolute;
        top: 38%;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 62%;
        padding: 12px;
        align-items: center;
        justify-content: center;
    }

    .login-card {
        width: min(600px, 94vw);
        max-width: 600px;
    }
}


/* =====================================================
   FINAL 40 / 60 DESKTOP LAYOUT
   ===================================================== */

@media (min-width: 769px) {

    .login-container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
    }

    .left-section {
        width: 40%;
        height: 100%;
        flex: 0 0 40%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0;
    }

    .right-section {
        width: 60%;
        height: 100%;
        flex: 0 0 60%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0;
    }

    .login-card {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        margin: 0;
        width: min(430px, 82%);
        max-width: 430px;
    }

    .left-content {
        position: relative;
        left: auto;
        right: auto;
        margin: 0;
        width: min(330px, 82%);
        transform: none;
    }
}

/* =====================================================
   TABLET / MOBILE
   ===================================================== */

@media (max-width: 768px) {

    body {
        overflow-y: auto;
    }

    .login-page {
        min-height: 100vh;
        height: auto;
        overflow: hidden;
    }

    .login-container {
        min-height: 100vh;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .left-section,
    .right-section {
        width: 100%;
        flex: 0 0 100%;
    }

    .left-section {
        min-height: 42vh;
        padding: 30px 20px;
    }

    .right-section {
        min-height: 58vh;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .left-content {
        width: min(420px, 90%);
        margin: 0 auto;
    }

    .login-card {
        width: min(600px, 94vw);
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {

    .left-section {
        min-height: 38vh;
        padding: 25px 15px;
    }

    .right-section {
        min-height: 62vh;
        padding: 12px;
    }

    .left-content {
        width: 92%;
    }

    .login-card {
        width: 100%;
        max-width: 100%;
        padding: 20px 14px;
    }
}


/* =========================================================
   FINAL RESPONSIVE 40 / 60 LAYOUT
   - The supplied main-bg.png is the ONLY page background.
   - Floating feature elements are removed.
   - Left branding is contained in 40%.
   - Login wizard is centered inside 60%.
   - Login card is intentionally larger to match the reference.
========================================================= */

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

body {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.login-page {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: url("../../assetsmain/img/main-bg.png") center center / cover no-repeat;
}

/* The old background layer is intentionally disabled. */
.login-background,
.feature-icons,
.feature-icon {
    display: none !important;
}

.login-container {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

/* -------------------- LEFT 40% -------------------- */
.brand-section {
    position: relative;
    width: 40%;
    flex: 0 0 40%;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 3vw, 48px);
    overflow: hidden;
    pointer-events: none;
}

.brand-content {
    position: relative;
    left: auto;
    top: auto;
    width: min(390px, 92%);
    margin: 0;
    transform: none;
    color: #fff;
    text-align: left;
}

.brand-logo {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(38px, 4.4vw, 64px);
    line-height: .95;
    font-weight: normal;
    letter-spacing: 0.5px;
    /* background-image: url(asset/blume-logo.png);
    width: 250px;
    height: 67px; */
}

.brand-content h1 {
    margin: 0 0 10px;
    color: #FAA300;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 800;
    font-family: 'Inter Bold';
    margin: 12px 0;
}

.brand-content p {
    margin: 0;
    color: rgba(255, 255, 255, .95);
    /* font-size: clamp(11px, 1.02vw, 16px); */
    line-height: 1.28;
    font-size: 19px;
    letter-spacing: 0.3px;
}

/* -------------------- RIGHT 60% -------------------- */
.login-section {
    position: relative;
    width: 60%;
    flex: 0 0 60%;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 48px);
}

.login-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 0;

    /* Larger than the previous 430px card. */
    width: min(750px, 92%);
    max-width: 750px;
    min-height: 190px;

    padding: clamp(30px, 3.2vw, 44px);
    background: #fff;
    border-radius: clamp(15px, 1.4vw, 21px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .22);
}

.login-step h2 {
    margin-bottom: 18px;
    font-size: 22px;
    font-family: 'Inter Bold';
}

.login-step>label {
    margin-bottom: 7px;
    font-size: 16px;
    font-family: 'Inter Medium';
}

.select-wrapper select,
.selected-value {
    height: clamp(42px, 3.05vw, 53px);
    font-size: 16px;
    border: 1px solid #E2E2E2;
    background: #F8F8F8;
    font-family: 'Inter';
}

.select-wrapper select {
    padding-left: 15px;
}

.location-list {
    gap: 10px;
    padding: 20px 10px;
    border: 1px solid #E2E2E2;
    border-radius: 20px;
    margin: 25px 0;
}

.location-item {
    min-height: 76px;
    padding: 8px;
    border-radius: 25px;
}

.location-logo {
    width: 100px;
    height: 100px;
    background-image: url(asset/RWTTC.png);
    background-size: cover;
}

.location-name {
    font-size: 14px;
    font-family: 'Inter';
    line-height: 1.35;
}

.application-list {
    gap: 10px;
    padding: 20px 10px;
    border: 1px solid #E2E2E2;
    border-radius: 20px;
    margin: 25px 0;
}

.application-item {
    min-height: 105px;
    border-radius: 20px;
}

.application-item strong {
    font-size: 15px;
    font-family: 'Inter Bold';
    width: 100px;
    margin-top: 10px;
}

.application-item-content {
    text-align: left;
}

.application-item span {
    font-size: 14px;
}

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

.login-form-step h2 {
    font-size: clamp(22px, 1.7vw, 29px);
}

.input-group input {
    height: clamp(44px, 3.1vw, 54px);
    font-size: clamp(10px, .72vw, 13px);
}

.login-button {
    height: clamp(44px, 3.1vw, 54px);
    font-size: clamp(10px, .72vw, 13px);
}


.location-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

/* Fixed logo */
.location-logo {
    flex: 0 0 150px;
    width: 150px;
}

/* Only this part scrolls */
.location-scroll {
    display: flex;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding: 5px 0 10px;
    scrollbar-width: auto;
}

/* Fixed-width cards */
.location-item {
    flex: 0 0 130px;
    width: 130px;
    min-width: 130px;
}

/* Fixed-width location cards */
.location-item {
    flex: 0 0 130px;
    width: 130px;
    min-width: 130px;
}

/* Fixed-width club logo */
.location-logo {
    flex: 0 0 100px;
    width: 100px;
    min-width: 100px;
}

/* Make scrollbar visible */
.location-scroll::-webkit-scrollbar {
    height: 8px;
}

.location-scroll::-webkit-scrollbar-track {
    background: #eeeeee;
    border-radius: 10px;
}

.location-scroll::-webkit-scrollbar-thumb {
    background: #999999;
    border-radius: 10px;
}

.location-scroll::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

.desktop-icon {
    background: url('data:image/svg+xml,<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.85791 8.28711C2.85791 6.07797 4.64877 4.28711 6.85791 4.28711H27.4358C29.645 4.28711 31.4358 6.07797 31.4358 8.28711V20.2916C31.4358 22.5008 29.645 24.2916 27.4358 24.2916H6.85791C4.64877 24.2916 2.85791 22.5008 2.85791 20.2916V8.28711Z" stroke="%23FAA300" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M11.4312 30.0059H22.8623" stroke="%23FAA300" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M17.147 24.291V30.0066" stroke="%23FAA300" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    height: 35px;
    width: 35px;
}

.mobile-icon {
    background: url('data:image/svg+xml,<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.14453 6.85743C7.14453 4.64829 8.93539 2.85742 11.1445 2.85742H23.1491C25.3582 2.85742 27.1491 4.64828 27.1491 6.85742V27.4353C27.1491 29.6445 25.3582 31.4353 23.1491 31.4353H11.1445C8.93539 31.4353 7.14453 29.6445 7.14453 27.4353V6.85743Z" stroke="%23FAB101" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" /><circle cx="17.1467" cy="25.7199" r="1.4289" fill="%23FAB101" /></svg>');
    height: 35px;
    width: 35px;
}

/* -------------------- 769px to 1150px -------------------- */
@media (min-width: 769px) and (max-width: 1150px) {
    .brand-section {
        padding: 20px;
    }

    .brand-content {
        width: 92%;
    }

    .login-section {
        padding: 18px;
    }

    .login-card {
        width: 94%;
        max-width: 650px;
        padding: 15px 24px;
    }

    .location-list,
    .application-list {
        margin-bottom: 0px;
    }

    .location-item {
        min-height: 78px;
    }

    .application-item {
        min-height: 95px;
        min-width: 250px;
    }

    .login-container {
        flex-direction: column;
        height: 70%;
        max-height: 475px;
    }

    .brand-section {
        width: 50%;
        flex: 0 0 50%;
        margin: 0 auto;
    }

    .login-section {
        width: 80%;
        flex: 0 0 80%;
        margin: 0 auto;
    }

    .brand-logo {
        text-align: center;
    }

    .login-section {
        align-items: flex-start;
    }

    .brand-logo img {
        width: 150px;
    }

    .brand-content h1 {
        font-size: 26px;
    }

    .brand-content p {
        font-size: 16px;
    }
}

/* -------------------- TABLET -------------------- */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .login-page {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        background-position: center center;
        background-size: cover;
    }

    .login-container {
        min-height: 100vh;
        height: auto;
        flex-direction: column;
    }

    .brand-section {
        width: 100%;
        flex: 0 0 auto;
        min-height: 310px;
        padding: 34px 24px 24px;
        text-align: center;
    }

    .brand-content {
        width: min(520px, 94%);
        text-align: center;
    }

    .brand-logo {
        font-size: clamp(42px, 10vw, 58px);
    }

    .brand-content h1 {
        font-size: clamp(23px, 5.5vw, 31px);
    }

    .brand-content p {
        font-size: clamp(12px, 2.5vw, 15px);
    }

    .login-section {
        width: 100%;
        flex: 1 1 auto;
        min-height: 460px;
        padding: 18px 14px 36px;
        align-items: flex-start;
    }

    .login-card {
        width: min(680px, 100%);
        max-width: 680px;
        padding: 28px 24px;
    }

    .location-list,
    .application-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* -------------------- PHONES -------------------- */
@media (max-width: 520px) {
    .brand-section {
        min-height: 255px;
        padding: 28px 16px 18px;
    }

    .brand-content {
        width: 100%;
    }

    .brand-logo {
        margin-bottom: 8px;
        font-size: 44px;
    }

    .brand-logo img {
        width: 200px;
    }

    .brand-content h1 {
        margin-bottom: 8px;
        font-size: 23px;
    }

    .brand-content p {
        font-size: 11px;
        line-height: 1.35;
    }

    .login-section {
        min-height: 0;
        padding: 12px 10px 28px;
    }

    .login-card {
        width: 100%;
        padding: 24px 16px;
        border-radius: 14px;
    }

    .close-btn {
        top: 10px;
        right: 12px;
        font-size: 20px;
    }

    .location-list,
    .application-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .location-list {
        align-items: center;
    }

    .location-item {
        min-height: 60px;
        padding: 7px 4px;
        flex-direction: column;
        gap: 5px;
        flex: 0 0 100px;
        width: 100px;
        min-width: 100px;
        border-radius: 15px;
    }

    .location-logo {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        min-width: 60px;
    }

    .location-name {
        font-size: 10px;
        line-height: 1.35;
    }

    .application-item {
        min-height: 94px;
        padding: 7px 3px;
        flex-direction: column;
        gap: 0px;
    }

    .application-item strong {
        font-size: 12px;
    }

    .application-item span {
        font-size: 11px;
        text-align: center;
    }

    .application-item-content {
        text-align: center;
    }

    .login-form-step {
        width: 100%;
    }

    .terms {
        max-width: 300px;
    }

    .line-separator {
        border-top: 2px solid rgba(0, 0, 0, 0.07);
        height: 1px;
        width: 100%;
        border-left: 0px;
        gap: 0;
    }

}

/* -------------------- VERY SMALL PHONES -------------------- */
@media (max-width: 360px) {
    .brand-section {
        min-height: 235px;
    }

    .brand-logo {
        font-size: 40px;
    }

    .brand-content h1 {
        font-size: 21px;
    }

    .brand-content p {
        font-size: 10.5px;
    }

    .login-card {
        padding: 21px 12px;
    }

    .location-list,
    .application-list {
        gap: 5px;
    }
}

/* -------------------- SHORT DESKTOP -------------------- */
@media (max-height: 650px) and (min-width: 769px) {
    .login-card {
        padding-top: 23px;
        padding-bottom: 23px;
    }

    .location-item {
        min-height: 64px;
    }

    .application-item {
        min-height: 84px;
    }
}

/* =========================================================
   FINAL USERNAME / PASSWORD CARD
   Keep the original compact login-card dimensions/style.
   Steps 1-3 remain large as requested.
========================================================= */
.login-card.final-login-card {
    width: min(430px, 92%);
    max-width: 430px;
    min-height: 0;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.login-card.final-login-card .login-form-step {
    width: 100%;
    max-width: none;
}

.login-card.final-login-card .login-form-step h2 {
    margin-bottom: 18px;
    font-size: 24px;
}

.login-card.final-login-card .input-group input {
    height: 55px;
    font-size: 16px;
    font-family: 'Inter';
    border-radius: 10px;
}

.login-card.final-login-card .login-button {
    height: 55px;
    font-size: 16px;
    font-family: 'Inter';
    border-radius: 28px;
    margin: 5px 0;
}

.login-card.final-login-card .terms {
    max-width: 350px;
    margin-top: 15px;
    font-size: 13px;
    font-family: 'Inter Medium';
}

.lock-icon {
    background: url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_24491_2386)"><path d="M23.9999 10.6673H22.6666V8.00065C22.6666 4.32065 19.6799 1.33398 15.9999 1.33398C12.3199 1.33398 9.33325 4.32065 9.33325 8.00065V10.6673H7.99992C6.52659 10.6673 5.33325 11.8607 5.33325 13.334V26.6673C5.33325 28.1407 6.52659 29.334 7.99992 29.334H23.9999C25.4733 29.334 26.6666 28.1407 26.6666 26.6673V13.334C26.6666 11.8607 25.4733 10.6673 23.9999 10.6673ZM15.9999 22.6673C14.5266 22.6673 13.3333 21.474 13.3333 20.0007C13.3333 18.5273 14.5266 17.334 15.9999 17.334C17.4733 17.334 18.6666 18.5273 18.6666 20.0007C18.6666 21.474 17.4733 22.6673 15.9999 22.6673ZM20.1333 10.6673H11.8666V8.00065C11.8666 5.72065 13.7199 3.86732 15.9999 3.86732C18.2799 3.86732 20.1333 5.72065 20.1333 8.00065V10.6673Z" fill="%23DDDDDD" /></g><defs><clipPath id="clip0_24491_2386"><rect width="32" height="32" fill="white" /></clipPath></defs></svg>');
    width: 32px;
    height: 32px;
    right: 0px;
}

.user-icon {
    background: url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_24491_2385)"><path d="M15.9999 16.0007C18.9466 16.0007 21.3333 13.6073 21.3333 10.6673C21.3333 7.72065 18.9466 5.33398 15.9999 5.33398C13.0533 5.33398 10.6666 7.72065 10.6666 10.6673C10.6666 13.6073 13.0533 16.0007 15.9999 16.0007ZM15.9999 18.6673C12.4466 18.6673 5.33325 20.4473 5.33325 24.0007V26.6673H26.6666V24.0007C26.6666 20.4473 19.5533 18.6673 15.9999 18.6673Z" fill="%23DDDDDD" /></g><defs><clipPath id="clip0_24491_2385"><rect width="32" height="32" fill="white" /></clipPath></defs></svg>');
    width: 32px;
    height: 32px;
    right: 10px;
}

.custom-check {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 5px;
}

.custom-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #E1E1E1;
    border-radius: 6px;
    background: #F8F8F8;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
}

/* Orange check */
.custom-check input:checked+.checkmark::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 13px;
    border: solid #F9A900;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    left: 6px;
    top: 2px;
}

@media (max-width: 768px) {
    .login-card.final-login-card {
        width: min(430px, 100%);
        max-width: 430px;
        padding: 26px 22px;
    }
}

@media (max-width: 520px) {
    .login-card.final-login-card {
        width: 100%;
        max-width: 430px;
        padding: 24px 16px;
        border-radius: 14px;
    }
}