:root {
    --bs-blue: #042b66;
    --bs-blue-2: #075bad;
    --bs-cyan: #00b5e2;
    --bs-cyan-soft: #dff8ff;
    --bs-yellow: #ffd35a;
    --bs-ink: #10233f;
    --bs-muted: #64748b;
    --bs-line: rgba(11, 114, 201, .16);
    --bs-shadow: 0 34px 80px rgba(4, 43, 102, .16);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

.login-v2-body {
    margin: 0;
    color: var(--bs-ink);
    font-family: "Poppins", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at 78% 12%, rgba(0, 181, 226, .12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f2fbff 48%, #ffffff 100%);
    overflow-x: hidden;
}

.login-v2-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 65%) minmax(430px, 35%);
    position: relative;
}

.login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(rgba(4, 43, 102, .65), rgba(7, 91, 173, .35), rgba(0, 181, 226, .18)),
        url("../images/login/login_pool.png") center center / cover no-repeat fixed;
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 22%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .88));
    pointer-events: none;
}

.login-visual-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(56px, 7vw, 108px);
    max-width: 820px;
    animation: loginFadeIn .6s ease both;
}

.login-visual-logo {
    width: clamp(166px, 17vw, 236px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 32px rgba(2, 20, 48, .24));
    margin-bottom: clamp(48px, 6vw, 82px);
}

.login-visual-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.45rem, 4.2vw, 5.15rem);
    line-height: .98;
    font-weight: 700;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 22px 58px rgba(2, 20, 48, .34);
}

.login-visual-copy h1 span {
    color: var(--bs-yellow);
}

.login-visual-copy p {
    margin: clamp(28px, 3vw, 44px) 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(1.04rem, 1.24vw, 1.35rem);
    line-height: 1.72;
    font-weight: 400;
    text-shadow: 0 14px 34px rgba(2, 20, 48, .26);
}

.login-waves {
    position: absolute;
    inset: auto 0 0;
    height: 190px;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    left: -9%;
    right: -9%;
    border-radius: 50% 50% 0 0;
    transform: rotate(-2deg);
}

.wave-one {
    height: 110px;
    bottom: -58px;
    background: rgba(255, 255, 255, .84);
}

.wave-two {
    height: 132px;
    bottom: -82px;
    background: rgba(0, 181, 226, .22);
    transform: rotate(2deg);
}

.wave-three {
    height: 86px;
    bottom: -44px;
    background: rgba(213, 247, 255, .54);
    transform: rotate(-5deg);
}

.login-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 32px clamp(60px, 4.6vw, 80px) 24px clamp(36px, 3.2vw, 56px);
    position: relative;
    z-index: 4;
    animation: loginSlideUp .58s ease both;
}

.login-card {
    width: min(100%, 472px);
    margin-left: auto;
    padding: clamp(30px, 2.9vw, 42px);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 34px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--bs-shadow);
    backdrop-filter: blur(18px);
}

.login-card-header {
    text-align: center;
    margin-bottom: 22px;
}

.login-card-logo {
    width: 126px;
    height: 84px;
    object-fit: contain;
    margin-bottom: 4px;
}

.login-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--bs-blue-2);
    background: rgba(0, 181, 226, .1);
    font-size: .78rem;
    font-weight: 700;
}

.login-card-header h2 {
    margin: 14px 0 8px;
    color: var(--bs-blue);
    font-size: clamp(1.74rem, 2.1vw, 2.28rem);
    font-weight: 750;
    letter-spacing: 0;
}

.login-card-header p {
    margin: 0 auto;
    max-width: 310px;
    color: var(--bs-muted);
    font-size: .98rem;
    line-height: 1.58;
}

.login-alert {
    border: 0;
    border-radius: 18px;
    padding: 14px 16px;
    background: #fff0f1;
    color: #9f1239;
    font-size: .92rem;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-field {
    display: grid;
    gap: 9px;
}

.login-field label {
    color: #24405f;
    font-size: .9rem;
    font-weight: 700;
}

.login-input {
    min-height: 56px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid var(--bs-line);
    border-radius: 20px;
    background: rgba(248, 253, 255, .88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s ease;
}

.login-input:focus-within,
.login-input:hover {
    border-color: rgba(0, 181, 226, .54);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 181, 226, .11);
    transform: translateY(-1px);
}

.login-input i {
    color: var(--bs-blue-2);
    font-size: 1.12rem;
}

.login-input input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--bs-ink);
    background: transparent;
    font: inherit;
    font-size: .98rem;
    min-width: 0;
}

.login-input input::placeholder {
    color: #94a3b8;
}

.password-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    color: var(--bs-blue-2);
    background: rgba(0, 181, 226, .09);
    transition: background .25s ease, transform .25s ease;
}

.password-toggle:hover {
    background: rgba(0, 181, 226, .16);
    transform: translateY(-1px);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--bs-muted);
    font-size: .9rem;
}

.login-options .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    margin: 0;
}

.login-options .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    border-color: rgba(7, 91, 173, .32);
}

.login-options .form-check-input:checked {
    background-color: var(--bs-cyan);
    border-color: var(--bs-cyan);
}

.login-options a {
    color: var(--bs-blue-2);
    font-weight: 700;
    text-decoration: none;
    transition: color .25s ease;
}

.login-options a:hover {
    color: var(--bs-cyan);
}

.login-submit {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
    border: 0;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(180deg, #075bad 0%, #00b5e2 100%);
    box-shadow: 0 18px 34px rgba(0, 108, 183, .28);
    font-size: 1rem;
    font-weight: 750;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 24px 42px rgba(0, 108, 183, .34);
}

.login-shortcuts {
    width: min(100%, 472px);
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.login-shortcuts a {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(7, 91, 173, .12);
    border-radius: 22px;
    color: #284866;
    background: rgba(255, 255, 255, .74);
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(4, 43, 102, .07);
    backdrop-filter: blur(14px);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.login-shortcuts a:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 181, 226, .38);
    box-shadow: 0 22px 42px rgba(4, 43, 102, .1);
}

.login-shortcuts i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--bs-blue-2);
    background: var(--bs-cyan-soft);
    font-size: 1.04rem;
}

.login-shortcuts span {
    font-size: .84rem;
    font-weight: 750;
    line-height: 1.24;
}

.login-footer {
    width: min(100%, 472px);
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7b8ba1;
    font-size: .8rem;
}

.login-footer span {
    color: var(--bs-blue);
    font-weight: 750;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes loginSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .login-v2-shell {
        grid-template-columns: minmax(0, 58%) minmax(390px, 42%);
    }

    .login-panel {
        padding-right: 40px;
    }

    .login-card,
    .login-shortcuts,
    .login-footer {
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .login-v2-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 42vh;
        background-attachment: scroll;
    }

    .login-visual::after {
        inset: auto 0 0;
        width: 100%;
        height: 36%;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0), #f5fcff);
    }

    .login-visual-content {
        min-height: 42vh;
        padding: 44px 48px 92px;
    }

    .login-visual-logo {
        width: 156px;
        margin-bottom: 28px;
    }

    .login-visual-copy h1 {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }

    .login-visual-copy p {
        margin-top: 20px;
        font-size: 1rem;
    }

    .login-panel {
        min-height: auto;
        padding: 0 32px 30px;
        margin-top: -54px;
        align-items: center;
    }

    .login-card,
    .login-shortcuts,
    .login-footer {
        width: min(100%, 560px);
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .login-v2-body {
        background:
            radial-gradient(circle at 50% -4%, rgba(0, 181, 226, .18), transparent 38%),
            linear-gradient(180deg, #ffffff 0%, #effbff 52%, #ffffff 100%);
    }

    .login-v2-shell {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 26px 16px;
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        width: min(100%, 342px);
        max-width: calc(100vw - 32px);
        min-height: 100vh;
        justify-content: center;
        padding: 0;
        margin: 0;
        gap: 18px;
    }

    .login-card {
        width: 100%;
        max-width: 100%;
        padding: 30px 22px;
        border-radius: 28px;
    }

    .login-card-logo {
        width: 132px;
        height: 88px;
    }

    .login-card-header {
        margin-bottom: 24px;
    }

    .login-card-header h2 {
        font-size: 1.48rem;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .login-shortcuts {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .login-shortcuts a {
        min-height: 56px;
        border-radius: 18px;
    }

    .login-footer {
        flex-direction: column;
        gap: 1px;
    }
}
