:root {
    --worq-blue: #126ff2;
    --worq-blue-dark: #103d91;
    --worq-purple: #6d35f5;
    --worq-cyan: #16c8df;
    --worq-green: #19d7a2;
    --worq-text: #12366e;
    --worq-muted: #7185a7;
    --worq-border: #dce8f8;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        "Noto Sans Thai",
        "Leelawadee UI",
        "Segoe UI",
        Arial,
        sans-serif;
    font-size: 16px;
    color: var(--worq-text);
    background:
        radial-gradient(circle at 10% 10%, rgba(117, 213, 255, .18), transparent 32%),
        radial-gradient(circle at 95% 90%, rgba(125, 80, 255, .14), transparent 28%),
        #f5faff;
}

.text-2xl {
    font-size: 2rem;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* LEFT / HERO */
.hero-panel {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(135deg, #edf9ff 0%, #f6fbff 55%, #edf7ff 100%);
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, .04),
            rgba(255, 255, 255, .18));
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

.hero-overlay {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    /*
    background: linear-gradient(90deg, rgba(245, 251, 255, .96) 0%, rgba(245, 251, 255, .88) 28%, rgba(245, 251, 255, .22) 58%, rgba(245, 251, 255, .02) 100%);
    */
    background: rgba(245, 251, 255, .26);
    pointer-events: none;
    width: 100vw;
}

.brand {
    position: absolute;
    z-index: 5;
    top: 30px;
    left: 34px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 150px;
    height: auto;
    display: block;
}

.hero-copy {
    position: absolute;
    z-index: 5;
    left: 7%;
    bottom: 7%;
    max-width: 500px;
    color: #103d91;
}

.hero-copy h1 {
    font-size: clamp(2rem, 3.4vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 12px;
    letter-spacing: -.04em;
}

.hero-copy p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #49668f;
}

.gradient-text {
    background: linear-gradient(90deg, #126ff2, #7136f5, #16c8df);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* RIGHT / LOGIN */
.login-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background:
        radial-gradient(circle at 100% 0%, rgba(33, 226, 185, .18), transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(107, 60, 246, .12), transparent 30%),
        rgba(255, 255, 255, .96);
    z-index: 99;
}

.login-wrap {
    width: min(100%, 490px);
}

.mobile-brand {
    display: none;
}

.login-card {
    position: relative;
    background: rgba(255, 255, 255, .38);
    border: 1px solid rgba(213, 227, 247, .85);
    border-radius: 30px;
    padding: 42px;
    box-shadow:
        0 30px 80px rgba(28, 76, 140, .13),
        0 8px 25px rgba(37, 101, 184, .06);
    backdrop-filter: blur(16px);
}

.login-logo {
    width: 180px;
    max-width: 70%;
    height: auto;
    margin: 0 auto 24px;
    display: block;
}

.login-title {
    margin: 0;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    color: #103d91;
    letter-spacing: -.02em;
}

.login-subtitle {
    text-align: center;
    color: var(--worq-muted);
    margin: 8px 0 30px;
    line-height: 1.6;
}

.form-label {
    font-weight: 700;
    color: #264d83;
    margin-bottom: 8px;
}

.input-group-worq {
    border: 1px solid var(--worq-border);
    border-radius: 15px;
    background: #fff;
    transition: .2s ease;
    overflow: hidden;
}

.input-group-worq:focus-within {
    border-color: #6f9ff7;
    box-shadow: 0 0 0 4px rgba(38, 126, 245, .10);
}

.input-group-worq .input-group-text {
    border: 0;
    background: transparent;
    color: #4779d7;
    padding-left: 16px;
}

.input-group-worq .form-control {
    border: 0;
    box-shadow: none !important;
    padding: 14px 14px 14px 4px;
    color: #183d73;
    background: transparent;
}

.input-group-worq .btn {
    border: 0;
    background: transparent;
    color: #7690b4;
}

input:-internal-autofill-selected,
input:focus-within,
input:focus {
    background-color: transparent !important;
}

.form-check-input {
    border-color: #c8d8ed;
}

.form-check-input:checked {
    background-color: var(--worq-blue);
    border-color: var(--worq-blue);
}

.forgot-link,
.signup-link {
    color: var(--worq-blue);
    text-decoration: none;
    font-weight: 700;
}

.forgot-link:hover,
.signup-link:hover {
    text-decoration: underline;
}

.btn-worq {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(105deg, #7627f5 0%, #5c48f4 42%, #148cf2 100%);
    box-shadow: 0 12px 25px rgba(84, 73, 237, .22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-worq span {
    font-size: 2rem;
    line-height: 1rem;
}

.btn-worq:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 16px 32px rgba(84, 73, 237, .28);
}

.btn-worq i {
    font-size: 1.2rem;
    margin: 0 0.25rem;
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: #93a5c0;
    font-size: .9rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #93a5c0;
}

.social-btn {
    border: 1px solid #9ec1f7;
    color: var(--worq-blue);
    background: #fff;
    border-radius: 999px;
    font-weight: 500;
    padding: .78rem 1.4rem;
    min-height: 48px;
    font-weight: 700;
    transition: .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
a .social-btn {
    color: var(--worq-blue)!important;
    text-decoration: none!important;
}

.social-btn i {
    font-size: 1.5rem;
    line-height: 1.5rem;
}

.social-btn:hover {
    color: var(--worq-blue-dark);
    background: #f3f8ff;
    border-color: #77a8f2;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(77, 74, 235, .28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.signup {
    text-align: center;
    margin: 28px 0 0;
    color: #7890af;
}

.language-switcher {
    position: absolute;
    top: 28px;
    right: 34px;
    z-index: 5;
    border: 1px solid #dbe7f5;
    background: rgba(255, 255, 255, .86);
    border-radius: 999px;
    padding: 9px 15px;
    color: #36557e;
    box-shadow: 0 8px 24px rgba(31, 81, 141, .08);
    backdrop-filter: blur(10px);
}

.footer-note {
    text-align: center;
    margin-top: 18px;
    color: #9aabc2;
    font-size: .78rem;
}

@media (max-width: 1199.98px) {
    .login-panel {
        padding: 32px;
    }

    .login-card {
        padding: 34px;
    }
}

@media (max-width: 991.98px) {
    .login-shell {
        display: block;
    }

    .hero-panel {
        min-height: 46vh;
        height: 46vh;
    }

    .hero-copy {
        left: 6%;
        bottom: 8%;
        max-width: 410px;
    }

    .hero-copy h1 {
        font-size: 2.2rem;
    }

    .login-panel {
        min-height: auto;
        padding: 34px 20px 50px;
    }

    .login-card {
        max-width: 560px;
        margin: auto;
    }

    .language-switcher {
        top: 18px;
        right: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-panel {
        min-height: 280px;
        height: 280px;
    }

    .hero-image {
        object-position: 6% center;
    }

    .brand {
        top: 18px;
        left: 20px;
    }

    .brand img {
        width: 112px;
    }

    .hero-copy {
        left: 20px;
        right: 20px;
        bottom: 24px;
    }

    .hero-copy h1 {
        font-size: 1.65rem;
        max-width: 280px;
    }

    .hero-copy p {
        font-size: .88rem;
        max-width: 310px;
    }

    .login-panel {
        padding: 22px 14px 35px;
    }

    .login-card {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .login-logo {
        width: 150px;
    }

    .login-title {
        font-size: 1.55rem;
    }

    .social-row {
        flex-direction: column;
    }
}
@media (min-width: 991.98px) {
    .login-shell {
        background-image: url(../img/loginbg.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }
    .hero-image {
        display: none;
    }
    .hero-panel,.hero-panel::after,.login-panel {
        background: unset;
    }

}
@media (min-width: 1399.98px) {
    .login-shell {
        background-position: left;
    }
}