html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: rgb(11, 16, 30);
}

/* ===== Full-screen dark cinematic background ===== */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: rgb(11, 16, 30);
}
.login-bg .bg-photo {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1567157577853-3fa515715560?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
    transform: scale(1.05);
    transition: transform 30s ease-out;
}
.login-bg:hover .bg-photo { transform: scale(1.1); }
.login-bg .overlay1 { position: absolute; inset: 0; background: rgba(7,11,20,0.85); mix-blend-mode: multiply; }
.login-bg .overlay2 { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(43,107,250,0.3), rgba(7,11,20,0.95)); }
.login-bg .orb-right { position: absolute; top: 10%; right: -5%; width: 700px; height: 700px; border-radius: 50%; background: rgba(43,107,250,0.15); filter: blur(120px); }
.login-bg .orb-left { position: absolute; bottom: -10%; left: -5%; width: 600px; height: 600px; border-radius: 50%; background: rgba(66,153,225,0.12); filter: blur(100px); }
.login-bg .grid-lines {
    position: absolute; inset: 0; opacity: 0.15;
    background: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), transparent);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), transparent);
}

/* ===== Main layout：全宽铺开，左右分区贴近设计稿比例 ===== */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 大屏左右留白，内容区占满可视宽度，避免「挤在中间一小块」 */
    padding: clamp(20px, 3vh, 48px) clamp(24px, 5vw, 96px);
}
.login-content {
    width: 100%;
    max-width: min(1760px, 100%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(32px, 5vw, 80px);
    min-height: min(720px, 88vh);
}

/* ===== Left brand panel：约 58% 视觉权重，左对齐 ===== */
.brand-panel {
    flex: 1 1 58%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 24px clamp(8px, 2vw, 24px) 24px 0;
    color: #fff;
}
.brand-inner {
    max-width: min(720px, 100%);
    width: 100%;
}
/* 与 react (3) Login.tsx：Globe2 外圈 = frosted 圆角方盒 + w-8 h-8 图标 */
.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    color: #fff;
}
.brand-icon .brand-globe {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}
.brand-title {
    font-size: clamp(2.25rem, 3.2vw + 1rem, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}
.brand-title .highlight {
    background: linear-gradient(90deg, rgb(191,219,254), rgb(255,255,255), rgb(219,234,254));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: clamp(1.05rem, 0.5vw + 0.9rem, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}
.brand-bar {
    width: 48px; height: 4px;
    background: rgba(43,107,250,0.8);
    border-radius: 2px;
    margin-bottom: 28px;
    box-shadow: 0 0 10px rgba(43,107,250,0.5);
}
.brand-desc {
    color: rgba(255,255,255,0.72);
    font-size: clamp(0.95rem, 0.35vw + 0.85rem, 1.0625rem);
    line-height: 1.75;
    max-width: 640px;
}
.brand-payments {
    margin-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 28px;
}
.brand-payments .payments-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.brand-payments .payments-logos { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
/* 与 react (3) Login.tsx：h-[46px] min-w-[110px] px-4 + 维基 SVG 反色为白 */
.pay-logo-card {
    height: 46px;
    min-width: 110px;
    padding: 0 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: background 0.3s, border-color 0.3s;
    cursor: default;
}
.pay-logo-card:hover {
    background: rgba(255, 255, 255, 0.08);
}
.pay-logo-card .pay-logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}
.pay-logo-card:hover .pay-logo-img {
    opacity: 1;
}
.pay-logo-card .pay-logo-img--upi { height: 18px; }
.pay-logo-card .pay-logo-img--paytm { height: 15px; }
.pay-logo-card .pay-logo-img--phonepe { height: 22px; }

/* ===== Right form card：收窄卡片与内边距（整体更紧凑） ===== */
.form-panel {
    flex: 0 0 clamp(360px, 26vw, 480px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 14px 0 14px clamp(7px, 1.2vw, 14px);
}
.form-card {
    background: rgba(255,255,255,0.98);
    padding: 24px 26px 22px;
    border-radius: 19px;
    box-shadow: 0 24px 48px -16px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.2);
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    backdrop-filter: blur(24px);
}
/* 让页脚在拉高卡片时仍贴在卡片底部 */
.form-card > form.layui-form {
    flex: 1 1 auto;
    min-height: 0;
}
/* 仅品牌图，替代「系统授权中心」文案区 */
.form-header.form-header--brand-only {
    text-align: center;
    margin-bottom: 23px;
}
.form-brand-logo {
    display: block;
    margin: 0 auto;
    max-width: min(317px, 90%);
    height: auto;
    max-height: 92px;
    width: auto;
    object-fit: contain;
}

/* ===== Form fields（相对上一版整体 ×1.2） ===== */
.form-card .field-group { margin-bottom: 12px; }
.form-card .field-label {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 14px;
    font-weight: 600;
    color: rgb(15,23,42);
    margin-bottom: 5px;
}
.form-card .field-label .hint {
    font-size: 12px;
    color: rgb(100,116,139);
    font-weight: 400;
}
.form-card .input-wrap {
    position: relative;
}
.form-card .input-wrap .icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgb(148,163,184);
    pointer-events: none;
}
.form-card .input-wrap input {
    width: 100%;
    height: 41px;
    padding: 0 12px 0 36px;
    border: 1px solid rgb(226,232,240);
    border-radius: 7px;
    font-size: 16px;
    color: rgb(15,23,42);
    background: rgb(249,250,251);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.form-card .input-wrap input:focus {
    border-color: rgb(59,130,246);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-card .input-wrap input::placeholder {
    color: rgb(148,163,184);
    font-weight: 400;
}

/* captcha row */
.captcha-row { display: flex; gap: 7px; align-items: stretch; }
.captcha-row .input-wrap { flex: 1; }
.captcha-box {
    height: 41px;
    width: clamp(115px, 24%, 142px);
    flex-shrink: 0;
    border: 1px solid rgb(226,232,240);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    background: rgb(241,245,249);
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s;
}
.captcha-box:hover { border-color: rgb(59,130,246); }
.captcha-box img { height: 31px; width: 100%; object-fit: cover; }

/* login button */
.form-card .btn-login {
    width: 100%;
    height: 43px;
    margin-top: 14px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(135deg, rgb(59,130,246), rgb(37,99,235));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.05em;
}
.form-card .btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}
.form-card .btn-login:active { transform: translateY(0); }

/* footer */
.form-footer {
    margin-top: auto;
    padding-top: 14px;
    text-align: center;
    border-top: 1px solid rgb(226,232,240);
}
.form-footer p {
    font-size: 11px;
    color: rgb(100,116,139);
    opacity: 0.7;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
}

/* ===== Google bind modal ===== */
.googleBindModal {
    display: none;
}
.googleBindModal .layui-card {
    text-align: center;
    border: none;
    box-shadow: none;
}
.googleBindModal .layui-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.googleBindModal #qrcode { margin-bottom: 20px; text-align: center; }
.googleBindModal #googleCode {
    width: 350px; height: 38px;
    border: 1px solid rgb(226,232,240);
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}
.googleBindModal .layui-form-item { margin-top: 12px; }
.googleBindModal .layui-btn {
    width: 350px;
    background: linear-gradient(135deg, rgb(59,130,246), rgb(37,99,235));
    border: none;
    border-radius: 6px;
}

/* ===== Responsive: hide brand on small screens ===== */
@media (max-width: 900px) {
    .brand-panel { display: none; }
    .login-content {
        justify-content: center;
        min-height: auto;
        gap: 0;
    }
    .form-panel {
        flex: 1 1 auto;
        width: 100%;
        max-width: 480px;
        padding: 14px;
    }
    .form-card { min-height: auto; }
}
@media (min-width: 901px) and (max-width: 1200px) {
    .login-content { gap: clamp(24px, 4vw, 48px); }
    .form-panel { flex-basis: clamp(360px, 30vw, 456px); }
}
