/* =========================================================
   Login — DVR Platform (Cloud Design)
   Static fallback (no Vite dependency)
   ========================================================= */

.login-body {
    min-height: 100vh;
    display: flex;
    background: var(--dvr-surface);
}

.lg-brandpane {
    width: 46%;
    max-width: 640px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #0f1b2e;
    color: #c4cee0;
    display: flex;
    flex-direction: column;
    padding: 46px 54px;
}

.lg-brandpane::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(620px 460px at 78% -8%, rgba(61, 116, 224, .32), transparent 60%),
        radial-gradient(540px 520px at 8% 108%, rgba(34, 87, 197, .30), transparent 62%);
}

.lg-grid {
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
}

.lg-brand-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lg-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--dvr-accent), #3d74e0);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .5px;
    box-shadow: 0 6px 16px rgba(34, 87, 197, .5);
}

.lg-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.lg-brand-name span {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: #6b7892;
    letter-spacing: .3px;
}

.lg-brand-mid {
    position: relative;
    margin-top: auto;
}

.lg-brand-mid h2 {
    font-size: 33px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -.8px;
    color: #fff;
    margin: 0 0 18px;
    max-width: 460px;
}

.lg-brand-mid h2 b {
    color: #6fa0f0;
    font-weight: 700;
}

.lg-brand-mid p {
    font-size: 15px;
    line-height: 1.6;
    color: #97a4ba;
    margin: 0;
    max-width: 420px;
}

.lg-feats {
    position: relative;
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lg-feat {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 14px;
    color: #c4cee0;
}

.lg-feat .fi {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: rgba(111, 160, 240, .14);
    color: #8fb4f5;
    border: 1px solid rgba(111, 160, 240, .2);
}

.lg-feat .fi svg {
    width: 18px;
    height: 18px;
}

.lg-brand-foot {
    position: relative;
    margin-top: auto;
    padding-top: 38px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: #6b7892;
}

.lg-brand-foot .dotsep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #46536b;
}

.lg-formpane {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    position: relative;
}

.lg-card {
    width: 100%;
    max-width: 392px;
}

.lg-mobilebrand {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 26px;
}

.lg-mobilebrand .lg-logo {
    box-shadow: 0 4px 10px rgba(34, 87, 197, .4);
}

.lg-mobilebrand .nm {
    font-size: 17px;
    font-weight: 700;
    color: var(--dvr-ink);
}

.lg-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--dvr-accent-tint);
    color: var(--dvr-accent);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
}

.lg-icon .ic {
    width: 26px;
    height: 26px;
}

.lg-step h1 {
    margin: 0 0 9px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--dvr-ink);
}

.lg-step .lead {
    margin: 0 0 28px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--dvr-ink-3);
}

.lg-step .lead b {
    color: var(--dvr-ink-2);
    font-weight: 600;
}

.lg-field {
    margin-bottom: 18px;
}

.lg-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--dvr-ink-3);
    margin-bottom: 8px;
}

.lg-input {
    position: relative;
}

.lg-input .pre {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dvr-ink-4);
    pointer-events: none;
}

.lg-input .pre .ic {
    width: 18px;
    height: 18px;
}

.lg-input input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--dvr-line-strong);
    border-radius: 12px;
    padding: 0 15px 0 44px;
    font: inherit;
    font-size: 15px;
    color: var(--dvr-ink);
    outline: none;
    background: var(--dvr-surface);
    transition: border-color .12s, box-shadow .12s;
}

.lg-input input::placeholder {
    color: var(--dvr-ink-4);
}

.lg-input input:focus {
    border-color: var(--dvr-accent);
    box-shadow: 0 0 0 4px var(--dvr-accent-tint);
}

.lg-input input.is-invalid {
    border-color: #e0433a;
}

.lg-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: var(--dvr-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 4px 12px rgba(34, 87, 197, .34);
    transition: background .14s, box-shadow .14s, transform .04s;
}

.lg-btn:hover {
    background: #1d4dad;
    box-shadow: 0 6px 18px rgba(34, 87, 197, .42);
}

.lg-btn:active {
    transform: translateY(1px);
}

.lg-btn:disabled {
    background: #aebfe2;
    box-shadow: none;
    cursor: not-allowed;
}

.lg-btn .ic {
    width: 17px;
    height: 17px;
}

.lg-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--dvr-ink-4);
    font-size: 12.5px;
    font-weight: 500;
}

.lg-divider::before,
.lg-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--dvr-line);
}

.lg-sso {
    width: 100%;
    height: 48px;
    border: 1px solid var(--dvr-line-strong);
    border-radius: 12px;
    background: var(--dvr-surface);
    color: var(--dvr-ink-2);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lg-sso .ic {
    width: 17px;
    height: 17px;
}

.lg-sso:hover {
    background: var(--dvr-surface-2);
}

.lg-hint {
    margin-top: 22px;
    font-size: 12.5px;
    color: var(--dvr-ink-4);
    text-align: center;
    line-height: 1.5;
}

.lg-hint a {
    color: var(--dvr-accent);
    text-decoration: none;
    font-weight: 600;
}

.lg-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 8px 10px;
    margin-bottom: 14px;
    font-size: 12.5px;
    line-height: 1.4;
}

.lg-alert .ic {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    flex-shrink: 0;
}

.lg-alert-info {
    background: #e7eefb;
    border-color: #cfdcf7;
    color: var(--dvr-accent-700);
}

.lg-alert-error {
    background: #fce8e7;
    border-color: #f2c9c7;
    color: #b42318;
}

.lg-foot {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--dvr-ink-4);
}

.lg-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dvr-ink-3);
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 22px;
    text-decoration: none;
}

.lg-back:hover {
    color: var(--dvr-accent);
}

.lg-back .ic {
    width: 15px;
    height: 15px;
}

.lg-sentto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dvr-ink-2);
    background: var(--dvr-surface-3);
    border: 1px solid var(--dvr-line);
    padding: 7px 13px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.lg-sentto .ic {
    width: 15px;
    height: 15px;
}

.lg-sentto b {
    color: var(--dvr-ink);
    font-weight: 600;
}

.lg-resend {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--dvr-ink-3);
}

.lg-resend.expired {
    color: #b42318;
}

.lg-resend b.tnum {
    font-weight: 700;
}

.lg-resend button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    color: var(--dvr-accent);
    font: inherit;
    font-weight: 600;
}

.lg-resend button:hover {
    color: var(--dvr-accent-700);
}

.lg-resend button .ic {
    width: 14px;
    height: 14px;
}

.otp-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.otp-box {
    flex: 1;
    height: 60px;
    border: 1px solid var(--dvr-line-strong);
    border-radius: 12px;
    background: var(--dvr-surface);
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--dvr-ink);
    outline: none;
    font-variant-numeric: tabular-nums;
    transition: border-color .12s, box-shadow .12s, background .12s;
}

.otp-box:focus {
    border-color: var(--dvr-accent);
    box-shadow: 0 0 0 4px var(--dvr-accent-tint);
}

.otp-box.filled {
    border-color: var(--dvr-accent);
    background: var(--dvr-accent-tint);
}

.otp-box.is-invalid {
    border-color: #f2c9c7;
}

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

.lg-step {
    animation: lgUp .26s ease both;
}

@media (max-width: 880px) {
    .lg-brandpane {
        display: none;
    }

    .lg-mobilebrand {
        display: flex;
    }

    .lg-formpane {
        padding-bottom: 68px;
    }
}
