:root {
    --c-navy: #1B2559;
    --c-teal: #0E9387;
    --c-teal-deep: #0C7A70;
    --c-gray: #64748B;
    --c-gray-line: #E4E8EE;
    --c-text: #334155;
    --c-page: #f7f7f7;
    --c-surface: #fff;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Nunito, sans-serif;
    color: var(--c-text);
    background: #fff;
}

.login-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-story {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 40px;
    overflow: hidden;
    color: #fff;
    background-color: #071614;
    background-image:
        radial-gradient(ellipse at 50% 42%, rgb(14 147 135 / 22%), transparent 58%),
        linear-gradient(rgb(255 255 255 / 4.5%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 4.5%) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
}

.login-panel {
    width: min(460px, 100%);
}

.login-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    margin-bottom: 28px;
    padding: 0 12px 0 10px;
    border: 1px solid rgb(52 211 153 / 28%);
    border-radius: 999px;
    background: rgb(16 80 68 / 80%);
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 800;
}

.login-pill svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.login-panel h2 {
    margin: 0 0 28px;
    max-width: 440px;
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.login-live {
    padding: 16px 16px 14px;
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 18px;
    background: rgb(8 28 26 / 72%);
    box-shadow: 0 24px 50px rgb(0 0 0 / 28%);
}

.login-live-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.login-live-top span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d1fae5;
    font-size: 14px;
    font-weight: 800;
}

.login-live-top i {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background:
        linear-gradient(#6ee7b7, #6ee7b7) center / 10px 2px no-repeat,
        linear-gradient(#6ee7b7, #6ee7b7) center / 2px 10px no-repeat,
        #134e4a;
}

.login-live-top b {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgb(16 185 129 / 16%);
    color: #6ee7b7;
    font-size: 12px;
    font-weight: 800;
}

.login-skel span {
    display: block;
    height: 8px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgb(255 255 255 / 10%);
}

.login-skel span:nth-child(1) { width: 78%; }
.login-skel span:nth-child(2) { width: 92%; }
.login-skel span:nth-child(3) { width: 64%; margin-bottom: 16px; }

.login-blocks {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 10px;
}

.login-blocks i {
    display: block;
    height: 72px;
    border-radius: 12px;
    background: rgb(255 255 255 / 5%);
}

.login-blocks i:first-child {
    background: linear-gradient(160deg, #1f8f7a, #0e4f45);
}

.login-love {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.login-faces { display: flex; }

.login-faces span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-left: -8px;
    border: 2px solid #071614;
    border-radius: 50%;
    background: #0f766e;
    color: #ecfdf5;
    font-size: 11px;
    font-weight: 800;
}

.login-faces span:first-child { margin-left: 0; background: #059669; }
.login-faces span:nth-child(2) { background: #0f766e; }
.login-faces span:nth-child(3) { background: #115e59; }
.login-faces span:nth-child(4) { background: #134e4a; color: #a7f3d0; }

.login-stars {
    color: #34d399;
    font-size: 13px;
    letter-spacing: 2px;
    line-height: 1;
}

.login-love p {
    margin: 4px 0 0;
    color: rgb(255 255 255 / 72%);
    font-size: 13px;
    font-weight: 700;
}

.login-love em {
    display: block;
    margin-top: 2px;
    color: rgb(255 255 255 / 55%);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.login-brand { display: block; margin-bottom: 22px; }

.login-brand img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.login-pane {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 40px 56px 24px;
    overflow: hidden;
    background: #fff;
}

.login-pane::before,
.login-pane::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.login-pane::before {
    width: 280px;
    height: 280px;
    top: -70px;
    right: -60px;
    background: radial-gradient(circle, rgb(14 147 135 / 18%), transparent 68%);
    animation: loginDrift 16s ease-in-out infinite;
}

.login-pane::after {
    width: 340px;
    height: 340px;
    left: -120px;
    bottom: -110px;
    background: radial-gradient(circle, rgb(254 159 73 / 16%), transparent 68%);
    animation: loginDrift 20s ease-in-out infinite reverse;
}

.login-form {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    margin: auto;
}

.login-form > * {
    animation: loginIn .55s ease both;
}

.login-form > *:nth-child(2) { animation-delay: .06s; }
.login-form > *:nth-child(3) { animation-delay: .12s; }
.login-form > *:nth-child(4) { animation-delay: .18s; }
.login-form > *:nth-child(5) { animation-delay: .24s; }

.login-kicker {
    margin: 0 0 8px;
    color: var(--c-teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

.login-form h1 {
    margin: 0 0 8px;
    color: var(--c-navy);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.lead {
    margin: 0 0 22px;
    color: var(--c-gray);
    font-size: 15px;
    line-height: 1.5;
}

.lead strong { color: var(--c-text); }

.field { margin-bottom: 14px; }

.field label {
    display: block;
    margin-bottom: 6px;
    color: var(--c-navy);
    font-size: 13px;
    font-weight: 800;
}

.field input,
.field-pass input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--c-gray-line);
    background: #fff;
    border-radius: 10px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    color: var(--c-text);
    outline: none;
}

.field-pass { position: relative; }
.field-pass input { padding-right: 84px; }

.field input:focus,
.field-pass input:focus {
    border-color: var(--c-teal);
    box-shadow: 0 0 0 4px rgb(14 147 135 / 14%);
}

#inputOtp {
    letter-spacing: .32em;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
}

.pass-eye {
    position: absolute;
    top: 8px;
    right: 8px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--c-gray-line);
    border-radius: 8px;
    background: #fff;
    color: var(--c-navy);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.pass-eye:hover { color: var(--c-teal); }

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 4px 0 18px;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
    cursor: pointer;
    user-select: none;
}

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

.check i {
    width: 18px;
    height: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    position: relative;
}

.check input:checked + i {
    background: var(--c-teal);
    border-color: var(--c-teal);
}

.check input:checked + i::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-forgot,
.login-back a,
.login-foot a {
    color: var(--c-teal);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.login-forgot:hover,
.login-back a:hover,
.login-foot a:hover { color: var(--c-teal-deep); }

.login-back { margin: 14px 0 0; }

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--c-teal);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-login:hover { background: var(--c-teal-deep); }

.btn-ghost {
    border: 0;
    background: none;
    color: var(--c-teal);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.btn-ghost:hover { color: var(--c-teal-deep); }

.login-otp-acts {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.alert {
    margin: 14px 0 0;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.alert.ok {
    background: #f0fdfa;
    color: var(--c-teal-deep);
    border-color: #99f6e4;
}

.login-sec {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
}

.login-sec::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0E9387, #FE9F49, transparent);
    background-size: 200% 100%;
    animation: loginLine 8s linear infinite;
}

.login-sec-dot { display: none; }

.login-sec div { min-width: 0; }
.login-sec strong { display: block; color: var(--c-navy); font-size: 14px; }
.login-sec em { display: block; margin-top: 2px; font-size: 12px; font-style: normal; color: var(--c-gray); }
.login-sec b {
    font-size: 14px;
    font-weight: 800;
    color: var(--c-navy);
}

.login-foot {
    position: relative;
    z-index: 1;
    margin: 0;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-gray);
    overflow-wrap: anywhere;
}

.login-ver-mobile::before { content: " · "; }

@media (max-width: 860px) {
    .login-split { grid-template-columns: 1fr; }
    .login-story { display: none; }
    .login-pane { padding: 28px 20px 18px; }
    .login-form h1 { font-size: 28px; }
    .login-foot { text-align: left; }
    .login-ver-mobile { display: block; margin-top: 4px; }
    .login-ver-mobile::before { content: ""; }
}

@media (max-width: 480px) {
    .login-row { flex-direction: column; align-items: flex-start; }
    .login-foot, .login-ver-mobile { text-align: left; }
}

@keyframes loginDrift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(16px, 20px, 0); }
}

@keyframes loginIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@keyframes loginLine {
    from { background-position: 0 0; }
    to { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .login-pane::before,
    .login-pane::after,
    .login-form > *,
    .login-sec::before { animation: none; }
}
