﻿@font-face {
    font-family: 'SamsungSharpSans';
    src: url('../fonts/SAMSUNGSHARPSANS-MEDIUM_1.woff2') format('woff2'), url('../fonts/SAMSUNGSHARPSANS-MEDIUM_1.woff') format('woff'), url('../fonts/SAMSUNGSHARPSANS-MEDIUM_1.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SamsungSharpSans';
    src: url('../fonts/SAMSUNGSHARPSANS-BOLD_1.woff2') format('woff2'), url('../fonts/SAMSUNGSHARPSANS-BOLD_1.woff') format('woff'), url('../fonts/SAMSUNGSHARPSANS-BOLD_1.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ── RESET ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root fix: lock the document itself to the viewport. No element can push html/body wider or taller than the screen. */
html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    overflow: hidden;
    font-family: 'SamsungSharpSans', sans-serif;
}

/* ── OUTER WRAPPER ──────────────────────────────────────────────── */
.body-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ══════════════════════════════════════════════════════════════════ LEFT — LOGIN PANEL ══════════════════════════════════════════════════════════════════ */
.login-section {
    width: 560px;
    min-width: 560px;
    height: 100%;
    background: #fff;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.161);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 70px;
    padding-right: 70px;
    padding-top: min(220px, 20vh);
    padding-bottom: min(220px, 20vh);
    gap: min(20px, 2vh);
}

/* ── SBA LOGO ───────────────────────────────────────────────────── */
.sba-logo {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: 45px;
    overflow: hidden;
}

    .sba-logo svg {
        width: 100%;
        height: 100%;
    }

/* ── MIDDLE GROUP ───────────────────────────────────────────────── */
.middle-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 14px;
}

/* ── LANGUAGE SELECTOR ──────────────────────────────────────────── */
.language-selector-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.language-selector {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    background: #fff;
    padding: 0 60px 0 20px;
    font-family: 'SamsungSharpSans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #515050;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.dropdown-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #2aabe1;
    border-radius: 50%;
    background-image: url("../images/VShaped.png");
    background-repeat: no-repeat;
    background-position: 0px -1px;
    background-size: 20px 20px;
    pointer-events: none;
}

    .dropdown-icon::after {
        display: none;
    }

/* ── LOGIN BUTTON ───────────────────────────────────────────────── */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: #0a4ca2;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

    .login-btn a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-family: 'SamsungSharpSans', sans-serif;
        font-size: 18px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.36px;
        color: #fff;
        text-decoration: none;
    }

    .login-btn:hover {
        background-color: #083d85;
    }

/* ── REGISTRATION ───────────────────────────────────────────────── */
.registration-section {
    width: 100%;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: #2aabe1;
    padding: 20px 20px 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 128px;
}

.registration-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: #fff;
}

.reg-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.dropdown {
    flex: 1;
    min-width: 0;
    height: 44px;
    border-radius: 8px;
    background-color: #fff;
    border: none;
    padding: 0 32px 0 16px;
    font-family: 'SamsungSharpSans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #000;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='9' viewBox='0 0 16 9'%3E%3Cpath d='M0 0 L8 8 L16 0' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 8px;
}


.go-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: #fff;
    border: none;
    font-family: 'SamsungSharpSans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: #000;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

    .go-btn:hover {
        background-color: #f0f0f0;
    }

/* ── BOTTOM GROUP ───────────────────────────────────────────────── */
.bottom-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    padding-top: 0;
}

/* ── TERMS ──────────────────────────────────────────────────────── */
.terms-section {
    width: 100%;
}

.terms-links {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: #757575;
}

    .terms-links a:first-child {
        padding-left: 0;
    }

    .terms-links a {
        color: #757575;
        text-decoration: underline;
        text-decoration-color: #707070;
        text-underline-offset: 2px;
        white-space: nowrap;
        padding: 0 6px;
    }

    .terms-links span {
        color: #cecdcd;
        margin: 0 6px;
        font-weight: 300;
    }



/* ── DIVIDER ────────────────────────────────────────────────────── */
.divider-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e2e2e2;
}

.divider-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e2e2e2;
    margin: 0 25px;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.employee-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
    line-height: 1.25;
    color: #757575;
    margin: 0;
    white-space: nowrap;
}

.login-link {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
    line-height: 1.25;
    color: #00b3e4;
    text-decoration: underline;
    text-decoration-color: #00b3e4;
    display: inline;
}

    .login-link:hover {
        opacity: 0.8;
    }

/* ══════════════════════════════════════════════════════════════════ RIGHT — WELCOME PANEL ══════════════════════════════════════════════════════════════════ */
.welcome-section {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.background-image {
    display: none;
}

.welcome-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-image {
    width: 90%;
    max-width: 1138px;
    height: auto;
    transform: translate(12px);
}

/* base - keeps absolute positioning for desktop */
.welcome-footer {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14.5px;
    z-index: 3;
}

.samsung-logo {
    width: 80px;
    height: 18px;
}

.cookie-statement {
    font-family: 'SamsungSharpSans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.33;
    letter-spacing: 0.24px;
    text-align: right;
    color: #fff;
    width: 588px;
}

/* ══════════════════════════════════════════════════════════════════ RESPONSIVE ══════════════════════════════════════════════════════════════════ */

@media (max-width: 1700px) {
    html,
    body {
        overflow: hidden;
        height: 100%;
    }

    .body-container {
        height: auto;
        min-height: 100vh;
    }

    .welcome-section {
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .login-section {
        height: auto;
        overflow: visible;
    }

    .welcome-image {
        width: 90%;
        max-width: 900px;
        transform: none;
    }
}

@media (max-width: 1600px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .body-container {
        height: auto;
        min-height: 100vh;
    }

    .welcome-section {
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .login-section {
        padding-top: min(160px, 14vh);
        padding-bottom: min(160px, 14vh);
        height: auto;
        overflow: visible;
    }

    .sba-logo {
        height: 80px;
    }

    .welcome-image {
        width: 100%;
        max-width: 800px;
    }
}

@media (max-width: 1400px) {
    html,
    body {
        overflow: hidden;
        height: 100%;
    }

    .login-section {
        width: 520px;
        min-width: 520px;
        padding-left: 50px;
        padding-right: 50px;
        padding-top: min(120px, 12vh);
        padding-bottom: min(120px, 12vh);
    }

    .welcome-content {
        padding: 0 20px;
    }

    .welcome-image {
        transform: none;
    }
}

@media (max-width: 1200px) {
    html,
    body {
        overflow: hidden;
        height: 100%;
    }

    .body-container {
        height: auto;
        min-height: 100vh;
    }

    .welcome-section {
        height: 100vh;
    }

    .login-section {
        width: 480px;
        min-width: 480px;
        padding-left: 30px;
        padding-right: 30px;
        padding-top: min(100px, 10vh);
        padding-bottom: min(100px, 10vh);
        height: auto;
        overflow: visible;
    }

    .sba-logo {
        height: 70px;
        margin-bottom: 30px;
    }

    .language-selector {
        height: 50px;
    }

    .login-btn {
        height: 50px;
    }

    .cookie-statement {
        width: 500px;
    }
}

@media (max-width: 1024px) {
    .samsung-logo {
        right: 20px;
        bottom: 70px;
    }

    .cookie-statement {
        width: 420px;
        right: 20px;
        bottom: 20px;
        text-align: right;
        font-size: 11px;
    }
}

@media (max-width: 992px) {
    .login-section {
        width: 440px;
        min-width: 440px;
        padding-left: 25px;
        padding-right: 25px;
        padding-top: min(80px, 8vh);
        padding-bottom: min(80px, 8vh);
    }

    .sba-logo {
        height: 60px;
        margin-bottom: 20px;
    }

    .language-selector {
        height: 44px;
    }

    .login-btn {
        height: 44px;
    }

    .dropdown,
    .go-btn {
        height: 38px;
    }

    .welcome-image {
        transform: none;
    }

    .samsung-logo {
        bottom: 63.5px;
    }

    .cookie-statement {
        width: 400px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {

    html,
    body {
        overflow: auto;
        height: auto;
    }

    .body-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .welcome-section {
        width: 100%;
        height: 45vh;
        min-height: 260px;
        flex-shrink: 0;
    }

    .welcome-content {
        padding: 0 20px;
        align-items: center;
        justify-content: center;
    }

    .welcome-image {
        width: 100%;
        max-width: 100%;
    }

    .login-section {
        width: 100%;
        min-width: unset;
        height: auto;
        padding: 36px 5vw 40px;
        justify-content: flex-start;
        gap: 20px;
        overflow: visible;
    }

    .sba-logo {
        height: 70px;
        margin-bottom: 30px;
    }

    .language-selector {
        height: 44px;
    }

    .login-btn {
        height: 44px;
    }

    .middle-group {
        gap: 12px;
    }

    .welcome-footer {
        right: 20px;
        bottom: 12px;
    }

    .samsung-logo {
        width: 60px;
        height: 14px;
        bottom: 58px;
    }

    .cookie-statement {
        font-size: 10px;
        width: 75%;
        right: 80px;
        width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    .welcome-section {
        height: 40vh;
        min-height: 220px;
    }

    .welcome-image {
        width: 95%;
    }

    .welcome-footer {
        right: 12px;
        bottom: 12px;
    }

    .samsung-logo {
        width: 50px;
        height: 12px;
    }

    .cookie-statement {
        font-size: 9px;
        width: calc(100vw - 24px);
    }
}

@media (max-width: 374px) {
    .welcome-footer {
        right: 12px;
        bottom: 8px;
    }

    .cookie-statement {
        font-size: 8px;
    }
}
