@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --gold: #0391d7;
    --gold-dark: #02699d;
    --gold-soft: #4ebbef;
    --gold-pale: #e2f5ff;
    --navy: #1a2e52;
    --navy-mid: #2c4270;
    --page-bg: #ffffff;
    --card-bg: #ffffff;
    --gray-bg: #f4f6fa;
    --gray-inp: #eceef4;
    --text-dark: #1a2e52;
    --text-body: #5a6a8a;
    --text-muted: #9aadc8;
    --error: #e53e3e;
    --success: #38a169;
    --border-color: #e8ecf4;
    --card-shadow: 0 28px 80px rgba(26, 46, 82, 0.12), 0 8px 24px rgba(26, 46, 82, 0.06);
}

[data-bs-theme="dark"] {
    --page-bg: var(--bs-body-bg);
    --card-bg: var(--bs-paper-bg);
    --gray-bg: var(--bs-body-bg);
    --gray-inp: rgba(255, 255, 255, 0.05);
    --text-dark: var(--bs-heading-color);
    --text-body: var(--bs-body-color);
    --text-muted: var(--bs-secondary-color);
    --navy: var(--bs-heading-color);
    --gold-pale: rgba(3, 145, 215, 0.16);
    --border-color: var(--bs-border-color);
    --card-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

.login-page {
    min-height: 100vh;
    background: var(--page-bg);
    display: flex;
    align-items: stretch;
    position: relative;
    font-family: "Inter", sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ══════════ BLOB BACKGROUND ══════════ */
.blob-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Big bottom-left blue blob */
.blob-bg svg.blob-main {
    position: absolute;
    bottom: -9%;
    left: -9%;
    width: min(70vw, 920px);
    height: auto;
}

/* Small top-right accent */
.blob-bg svg.blob-accent {
    position: absolute;
    top: -12%;
    right: -7%;
    width: min(30vw, 420px);
    height: auto;
    opacity: 0.48;
}

/* ══════════ LEFT SIDE ══════════ */
.left-side {
    flex: 0 0 57%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(1.5rem, 2.2vw, 2.5rem) clamp(1.5rem, 3.2vw, 3rem) clamp(2rem, 3vw, 3.25rem);
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: 100%;
}

.logo-icon {
    width: 46px;
    height: 46px;
}

.logo-icon img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.logo-text {
    line-height: 1.1;
    min-width: 0;
}

.logo-text .l1 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-body);
}

.logo-text .l2 {
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    font-weight: 800;
    color: var(--navy);
    white-space: normal;
}

/* Illustration container */
.illus-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0 1.25rem;
    min-height: 360px;
}

.illus-wrap img {
    display: block;
    width: 100%;
    max-width: min(680px, 58vw);
    height: auto;
    object-fit: contain;
}

/* ══════════ RIGHT SIDE ══════════ */
.right-side {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100vh;
    padding: 6rem clamp(1.5rem, 3vw, 3rem) 3rem;
}

/* Card */
.login-card {
    background: var(--card-bg);
    border: 1px solid rgba(232, 236, 244, 0.72);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    padding: clamp(2rem, 3vw, 2.6rem) clamp(1.65rem, 2.7vw, 2.25rem);
    width: 100%;
    min-width: 0;
    max-width: 420px;
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .login-card {
    border-color: rgba(255, 255, 255, 0.08);
}

/* Welcome heading */
.welcome-text {
    font-family: "Dancing Script", cursive;
    font-size: clamp(2.5rem, 3.2vw, 3rem);
    color: var(--gold);
    text-align: center;
    line-height: 1.1;
    margin-bottom: 1.55rem;
}

/* Google button */
.btn-google {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.75rem 1rem;
    line-height: 1.25;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    font-family: "Inter", sans-serif;
}

.btn-google:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.btn-google:focus-visible,
.btn-login:focus-visible,
.btn-eye:focus-visible,
.theme-switcher:focus-visible {
    outline: 3px solid rgba(3, 145, 215, 0.28);
    outline-offset: 2px;
}

.btn-google img {
    width: 22px;
    height: 22px;
}

.btn-google svg {
    flex: 0 0 auto;
}

[data-bs-theme="dark"] .btn-google:hover {
    border-color: var(--gold);
}

/* Divider */
.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0 1.05rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.35;
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Input */
.inp-group {
    margin-bottom: 0.95rem;
}

.inp-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.inp-wrap i.icon-l {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.05rem;
    pointer-events: none;
    transition: color 0.2s;
}

.inp-wrap input {
    width: 100%;
    min-height: 50px;
    border: 1px solid transparent;
    border-radius: 50px;
    background: var(--gray-inp);
    padding: 0.85rem 48px;
    font-family: "Inter", sans-serif;
    font-size: 0.88rem;
    color: var(--text-dark);
    outline: none;
    line-height: 1.2;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.inp-wrap input:hover {
    border-color: rgba(154, 173, 200, 0.25);
}

.inp-wrap input::placeholder {
    color: var(--text-muted);
}

.inp-wrap input:focus {
    background: var(--gold-pale);
    border-color: rgba(3, 145, 215, 0.45);
    box-shadow: 0 0 0 3px rgba(3, 145, 215, 0.22);
}

.inp-wrap:focus-within i.icon-l {
    color: var(--gold);
}

.inp-wrap input.is-invalid {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
    background: #fff5f5;
    border-color: rgba(229, 62, 62, 0.35);
}

[data-bs-theme="dark"] .inp-wrap input.is-invalid {
    background: rgba(229, 62, 62, 0.1);
}

.inp-wrap .btn-eye {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.inp-wrap .btn-eye:hover {
    background: rgba(3, 145, 215, 0.12);
    color: var(--gold);
}

/* Options */
.opt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.45rem 0 1.25rem;
}

.chk-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--text-body);
    cursor: pointer;
    user-select: none;
    line-height: 1.3;
}

.chk-label input {
    display: none;
}

.chk-box {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chk-box i {
    font-size: 0.7rem;
    color: var(--card-bg);
    display: none;
}

.chk-label input:checked~.chk-box {
    background: var(--gold);
    border-color: var(--gold);
}

.chk-label input:checked~.chk-box i {
    display: block;
}

.link-forgot {
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-weight: 700;
    text-decoration: none;
    flex: 0 0 auto;
}

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

/* Login button */
.btn-login {
    width: 100%;
    min-height: 50px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s, filter 0.2s;
    box-shadow: 0 6px 22px rgba(3, 145, 215, 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 1rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(3, 145, 215, 0.42);
    color: #fff;
    filter: saturate(1.05);
}

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

/* Theme Switcher */
.theme-switcher-wrap {
    position: absolute;
    top: clamp(1.25rem, 2.2vw, 2rem);
    right: clamp(1.25rem, 2.8vw, 2.5rem);
    z-index: 10;
}

.theme-switcher-wrap .btn-group {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 22px rgba(26, 46, 82, 0.08);
    backdrop-filter: blur(8px);
}

.theme-switcher {
    border: 0 !important;
    min-height: 34px;
    padding: 0.4rem 0.75rem;
    color: var(--text-body);
    font-weight: 600;
    box-shadow: none !important;
}

.theme-switcher.active {
    background: var(--gold-pale) !important;
    color: var(--gold-dark) !important;
}

[data-bs-theme="dark"] .theme-switcher-wrap .btn-group {
    background: rgba(0, 0, 0, 0.18);
}

/* Form validation tweaks */
.invalid-feedback {
    font-size: 0.72rem;
    padding-left: 18px;
    margin-top: 0.35rem;
}

.inp-group>.invalid-feedback {
    width: 100%;
    color: var(--error);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
    padding-left: 0.15rem;
    margin-top: 0.5rem;
}

.inp-group>.invalid-feedback:not(:empty) {
    display: block;
}

#turnstile-wrapper {
    display: flex;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.turnstile-feedback {
    padding-left: 0;
    margin-top: 0.45rem;
}

/* ══════════ RESPONSIVE ══════════ */
@media (min-width: 1400px) {
    .left-side {
        flex-basis: 58%;
    }

    .illus-wrap img {
        max-width: 520px;
    }
}

@media (max-width: 1199px) {
    .left-side {
        flex-basis: 54%;
    }

    .blob-bg svg.blob-main {
        width: 78vw;
    }

    .login-card {
        max-width: 390px;
    }
}

@media (max-width: 991px) {
    .login-page {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: 100vh;
        padding: 0;
    }

    .blob-bg svg.blob-main {
        width: 122%;
        bottom: auto;
        top: -13%;
        left: -12%;
        transform: rotate(180deg);
        opacity: 0.3;
    }

    .blob-bg svg.blob-accent {
        display: none;
    }

    .left-side {
        flex: none;
        width: 100%;
        min-height: auto;
        align-items: center;
        gap: 1rem;
        padding: 1.35rem 1.25rem 0;
    }

    .logo-wrap {
        align-self: flex-start;
        padding-right: 9rem;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
        border-radius: 11px;
        font-size: 1.1rem;
    }

    .logo-text .l1 {
        font-size: 0.58rem;
        letter-spacing: 1.7px;
    }

    .logo-text .l2 {
        font-size: 0.9rem;
    }

    .illus-wrap {
        min-height: 210px;
        padding: 0.35rem 0 0;
    }

    .illus-wrap img {
        max-width: min(300px, 76vw);
    }

    .right-side {
        width: 100%;
        min-height: auto;
        padding: 1rem 1.2rem 2rem;
    }

    .login-card {
        max-width: 440px;
        padding: 1.8rem 1.4rem;
        border-radius: 22px;
    }

    .theme-switcher-wrap {
        top: 1.25rem;
        right: 1.25rem;
    }

    .theme-switcher {
        min-height: 32px;
        padding: 0.35rem 0.62rem;
        font-size: 0.76rem;
    }
}

@media (max-width: 575px) {
    .login-page {
        background:
            linear-gradient(180deg, rgba(3, 145, 215, 0.05) 0%, rgba(3, 145, 215, 0) 42%),
            var(--page-bg);
    }

    .blob-bg svg.blob-main {
        width: 150%;
        top: -5%;
        left: -48%;
        opacity: 0.2;
    }

    .left-side {
        padding: 1rem 1rem 0;
        gap: 0.75rem;
    }

    .logo-wrap {
        padding-right: 0;
        width: 100%;
        max-width: calc(100% - 8.5rem);
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .logo-text .l1 {
        font-size: 0.54rem;
        letter-spacing: 1.4px;
    }

    .logo-text .l2 {
        font-size: 0.82rem;
    }

    .illus-wrap {
        display: none;
    }

    .right-side {
        padding: 1.35rem 0.9rem 1.5rem;
    }

    .login-card {
        max-width: 100%;
        padding: 1.55rem 1.05rem;
        border-radius: 20px;
        box-shadow: 0 18px 50px rgba(26, 46, 82, 0.11);
    }

    .welcome-text {
        font-size: 2.35rem;
        margin-bottom: 1.2rem;
    }

    .btn-google,
    .inp-wrap input,
    .btn-login {
        min-height: 48px;
    }

    .or-divider {
        gap: 8px;
        margin: 1rem 0 0.9rem;
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    .opt-row {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.65rem;
        margin-bottom: 1.1rem;
    }

    .link-forgot {
        margin-left: auto;
    }

    .chk-label,
    .link-forgot {
        font-size: 0.9rem;
    }

    .card-footer-txt p {
        font-size: 0.74rem;
    }

    .theme-switcher-wrap {
        top: 1rem;
        right: 1rem;
    }

    .theme-switcher i {
        margin-right: 0 !important;
    }

    .theme-switcher {
        width: 34px;
        min-height: 32px;
        padding: 0;
        font-size: 0;
    }

    .theme-switcher i {
        font-size: 0.82rem;
    }
}

@media (max-width: 360px) {
    .opt-row {
        flex-direction: column;
        align-items: stretch;
    }

    .link-forgot {
        align-self: flex-end;
    }
}

/* Reference-style composition */
.login-page {
    background: var(--page-bg);
    isolation: isolate;
    --auth-card-bg: #ffffff;
    --auth-card-text: #182033;
    --auth-card-shadow: 0 20px 48px rgba(26, 46, 82, 0.14);
    --auth-field-bg: #ffffff;
    --auth-field-border: #e5e7ec;
    --auth-field-text: #252b37;
    --auth-field-placeholder: #a1a7b3;
    --auth-field-icon: #8f96a3;
    --auth-label: #596171;
    --auth-muted: #70798a;
    --auth-divider: #dfe3ea;
    --auth-social-bg: #f6f7f9;
    --auth-submit-bg: #050505;
    --auth-submit-text: #ffffff;
}

.blob-bg svg.blob-main {
    bottom: -1px;
    left: 0;
    width: 100vw;
    height: 72vh;
    min-width: 980px;
    opacity: 1;
}

.blob-bg svg.blob-accent {
    top: -12%;
    right: -5%;
    width: min(28vw, 390px);
    opacity: 0.95;
}

.left-side {
    flex-basis: 58%;
    padding: 1.75rem clamp(1.5rem, 3vw, 3rem) 3rem;
}

.logo-wrap {
    position: relative;
    z-index: 3;
}

.illus-wrap {
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 2.5rem 0;
}

.illus-wrap::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(620px, 54vw);
    height: min(330px, 32vw);
    border-radius: 46% 54% 50% 50% / 55% 42% 58% 45%;
    transform: translate(-50%, -48%);
    z-index: -1;
}

.illus-wrap img {
    position: relative;
    z-index: 1;
    max-width: min(760px, 70vw);
    margin-left: 0;
}

.right-side {
    flex-basis: 42%;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem clamp(2rem, 4vw, 4.5rem) 2.5rem 0;
}

.login-panel {
    width: min(100%, 430px);
    min-width: 0;
    position: relative;
    z-index: 3;
    padding-bottom: 2.8rem;
}

.login-card {
    max-width: none;
    border: 0;
    border-radius: 14px;
    background: var(--auth-card-bg);
    color: var(--auth-card-text);
    padding: clamp(1.85rem, 3vw, 2.35rem) clamp(1.65rem, 2.7vw, 2.15rem) 2rem;
    box-shadow: var(--auth-card-shadow);
}

.welcome-text {
    font-size: clamp(2.45rem, 3.25vw, 3.05rem);
    margin-bottom: 1.35rem;
    color: var(--gold-dark);
}

.btn-google {
    min-height: 48px;
    border: 0;
    background: var(--auth-social-bg);
    color: var(--auth-card-text);
    box-shadow: none;
}

.btn-google:hover {
    background: #f0f1f4;
    box-shadow: 0 8px 18px rgba(26, 46, 82, 0.08);
}

.or-divider {
    margin: 1.45rem 0 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.8px;
    color: var(--auth-muted);
}

.or-divider::before,
.or-divider::after {
    background: var(--auth-divider);
}

.inp-group {
    margin-bottom: 1.15rem;
}

.inp-label {
    display: block;
    margin: 0 0 0.55rem 0.1rem;
    color: var(--auth-label);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
}

.inp-wrap input {
    min-height: 56px;
    border: 1px solid var(--auth-field-border);
    background: var(--auth-field-bg);
    color: var(--auth-field-text);
    font-size: 0.9rem;
    font-weight: 500;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    box-shadow: 0 1px 2px rgba(26, 46, 82, 0.02);
    transition: none;
}

.inp-wrap input::placeholder {
    color: var(--auth-field-placeholder);
    opacity: 1;
}

.inp-wrap input.password {
    padding-right: 3.2rem;
}

.inp-wrap input:hover {
    border-color: rgba(3, 145, 215, 0.45);
}

.inp-wrap input:focus {
    background: var(--auth-field-bg);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(3, 145, 215, 0.16);
}

.inp-wrap .btn-eye {
    color: var(--auth-field-icon);
}

.inp-wrap .btn-eye:hover {
    color: var(--gold);
}

.opt-row {
    margin: -0.2rem 0 1.55rem;
    gap: 0.75rem;
}

.chk-label,
.link-forgot {
    font-size: 0.9rem;
}

.chk-label {
    color: var(--auth-muted);
}

.chk-box {
    width: 15px;
    height: 15px;
    border-radius: 2px;
    border-width: 1px;
}

.chk-box i {
    font-size: 0.7rem;
}

.link-forgot {
    color: var(--auth-card-text);
    font-weight: 600;
}

.btn-login {
    width: 100%;
    min-height: 56px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--auth-submit-bg);
    color: var(--auth-submit-text);
    font-size: 1rem;
    box-shadow: 0 14px 28px rgba(5, 5, 5, 0.18);
}

.card-footer-txt {
    position: absolute;
    left: 0.35rem;
    top: calc(100% + 0.2rem);
    margin: 0;
    text-align: left;
}

.card-footer-txt p {
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    margin-bottom: 0.05rem;
    text-shadow: 0 1px 8px rgba(2, 74, 112, 0.38);
}

.card-footer-txt a {
    color: #e2f5ff;
}

.theme-switcher-wrap {
    top: 1.3rem;
    right: 1.3rem;
}

.theme-switcher-wrap .btn-group {
    border: 1px solid rgba(26, 46, 82, 0.22);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(26, 46, 82, 0.12);
}

.theme-switcher {
    color: #50607a !important;
    background: transparent !important;
    opacity: 1;
}

.theme-switcher:hover {
    color: #1a2e52 !important;
    background: rgba(26, 46, 82, 0.06) !important;
}

.theme-switcher.active {
    background: #1a2e52 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .login-page {
    background: var(--page-bg);
    --auth-card-bg: #171d26;
    --auth-card-text: #f4f6fb;
    --auth-card-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
    --auth-field-bg: #111821;
    --auth-field-border: #303846;
    --auth-field-text: #f4f6fb;
    --auth-field-placeholder: #798394;
    --auth-field-icon: #8d98aa;
    --auth-label: #d8dde7;
    --auth-muted: #9aa5b6;
    --auth-divider: #323b49;
    --auth-social-bg: #202834;
    --auth-submit-bg: linear-gradient(135deg, #4ebbef 0%, #0391d7 100%);
    --auth-submit-text: #ffffff;
}

[data-bs-theme="dark"] .theme-switcher-wrap .btn-group {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(17, 24, 33, 0.92);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] .theme-switcher {
    color: #b8c2d3 !important;
}

[data-bs-theme="dark"] .theme-switcher:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .theme-switcher.active {
    background: var(--gold) !important;
    color: #1c1300 !important;
}

@media (max-width: 1199px) {
    .left-side {
        flex-basis: 56%;
    }

    .right-side {
        flex-basis: 44%;
        padding-right: 2rem;
    }

    .illus-wrap img {
        max-width: min(700px, 69vw);
        margin-left: 0;
    }
}

@media (max-width: 991px) {
    .blob-bg svg.blob-main {
        min-width: 0;
        width: 155vw;
        height: 64vh;
        top: auto;
        right: auto;
        bottom: -10%;
        left: -34%;
        transform: none;
        opacity: 1;
    }

    .left-side {
        min-height: auto;
        padding: 1.25rem 1.25rem 0;
    }

    .logo-wrap {
        padding-right: 8.5rem;
    }

    .illus-wrap {
        display: none;
    }

    .illus-wrap::before {
        display: none;
    }

    .right-side {
        align-items: center;
        justify-content: center;
        padding: 1.1rem 1.2rem 2rem;
    }

    .login-panel {
        width: 100%;
        max-width: 430px;
        padding-bottom: 0;
    }

    .login-card {
        width: 100%;
        padding: 1.75rem 1.35rem 1.8rem;
    }

    .card-footer-txt {
        position: static;
        margin-top: 0.7rem;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .login-page {
        background: var(--page-bg);
    }

    .blob-bg svg.blob-main {
        width: 210vw;
        height: 64vh;
        left: -84%;
        bottom: -7%;
    }

    .left-side {
        min-height: auto;
        padding: 1rem 1rem 0;
    }

    .logo-wrap {
        max-width: calc(100% - 7rem);
        padding-right: 0;
    }

    .illus-wrap {
        display: none;
    }

    .right-side {
        padding: 7rem 0.95rem 1.5rem;
        overflow: hidden;
    }

    .login-panel {
        width: calc(100vw - 1.9rem) !important;
        max-width: calc(100vw - 1.9rem);
    }

    .login-card {
        width: 100%;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden;
        border-radius: 14px;
        padding: 1.55rem 1.05rem 1.65rem;
    }

    .login-card form,
    .login-card .inp-group,
    .login-card .inp-wrap,
    .login-card .btn-google,
    .login-card .or-divider {
        min-width: 0;
        max-width: 100%;
    }

    .inp-wrap input {
        min-width: 0;
    }

    .welcome-text {
        font-size: 2.3rem;
    }

    .btn-login {
        width: 100%;
    }

    .opt-row {
        width: 100%;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .chk-label {
        min-width: 0;
    }

    .link-forgot {
        display: none;
    }

    .card-footer-txt p {
        color: var(--text-body);
    }

    .card-footer-txt a {
        color: var(--gold-dark);
    }
}
