/* 登录模板 1：真实业务字段不变，复刻 Naive Admin 双栏登录构图。 */
.login-page { min-height: 100vh; overflow: hidden; background: #fff; }
.login-shell { display: flex; min-height: 100vh; }

.login-visual {
    position: relative;
    display: flex;
    width: 50%;
    min-height: 100vh;
    flex-direction: column;
    background:
        radial-gradient(600px at 80% 20%, rgba(144, 202, 249, .2), transparent 70%),
        radial-gradient(700px at 50% 80%, rgba(97, 29, 241, .2), transparent 60%),
        #fbfcff;
}
.login-brand, .login-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(0, 0, 0, .82);
    font-size: 18px;
    line-height: 1;
}
.login-brand { position: absolute; top: 24px; left: 24px; }
.login-brand strong, .login-mobile-brand strong { font-weight: 600; }
.login-visual-content {
    display: flex;
    margin: auto;
    transform: translateY(-8px);
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.login-illustration { width: 423px; height: 362px; object-fit: contain; }
.login-visual-content h1 { margin-top: 12px; font-size: 22px; font-weight: 500; letter-spacing: .2px; }
.login-visual-content p { margin-top: 5px; color: var(--text-muted); font-size: 14px; letter-spacing: 1px; }

.login-panel {
    position: relative;
    display: flex;
    width: 50%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.login-panel-tools { position: absolute; top: 22px; right: 24px; }
.login-panel-tools button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}
.login-panel-tools button:hover { color: var(--primary); background: var(--primary-light); }
.login-form-wrap { width: 469px; padding: 32px; transform: translateY(-34px); }
.login-mobile-brand { display: none; margin-bottom: 72px; font-size: 23px; white-space: nowrap; }
.login-form-wrap h2 { margin-bottom: 12px; font-size: 24px; line-height: 1.4; font-weight: 500; }
.login-tabs {
    display: inline-flex;
    height: 38px;
    align-items: center;
    margin-bottom: 25px;
    padding: 3px;
    border-radius: 8px;
    background: #f5f5f6;
}
.login-tabs button {
    display: inline-flex;
    height: 32px;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    background: transparent;
}
.login-tabs button.active { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

.login-field { position: relative; display: block; margin-bottom: 18px; }
.login-field > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    transform: translateY(-50%);
    color: #b4b8c0;
    font-size: 15px;
}
.login-field input {
    width: 100%;
    height: 40px;
    padding: 0 42px;
    border: 1px solid #dedee5;
    border-radius: 4px;
    outline: none;
    color: var(--text);
    background: #fff;
    transition: border-color .16s, box-shadow .16s;
}
.login-field input:hover { border-color: #36ad6a; }
.login-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(45, 140, 240, .12); }
.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 42px;
    height: 40px;
    place-items: center;
    border: 0;
    color: #a7abb3;
    background: transparent;
    cursor: pointer;
}
.login-options { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 13px; }
.login-options label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.login-options input { width: 16px; height: 16px; accent-color: var(--primary); }
.login-error { min-height: 31px; padding-top: 6px; color: var(--danger); font-size: 13px; }
.login-submit {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: #458de4;
    cursor: pointer;
    transition: background .16s, opacity .16s;
}
.login-submit:hover { background: #2d7fdc; }
.login-submit:disabled { opacity: .58; }
.login-footnote { margin-top: 26px; color: var(--text-muted); text-align: center; font-size: 12px; }

.login-page.login-dark, .login-page.login-dark .login-panel { background: #101014; }
.login-page.login-dark .login-panel, .login-page.login-dark .login-form-wrap { color: rgba(255, 255, 255, .86); }
.login-page.login-dark .login-field input { border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .86); background: #18181c; }
.login-page.login-dark .login-tabs { background: #202024; }
.login-page.login-dark .login-tabs button.active { background: #2b2b30; }
.login-page.login-dark .login-mobile-brand { color: rgba(255, 255, 255, .86); }

@media (max-width: 900px) {
    .login-visual { display: none; }
    .login-panel { width: 100%; align-items: flex-start; }
    .login-panel-tools { top: 24px; right: 18px; }
    .login-form-wrap { width: 100%; max-width: 430px; padding: 16px 15px 24px; transform: none; }
    .login-mobile-brand { display: inline-flex; margin-bottom: 155px; margin-left: 9px; font-size: 18px; }
    .login-form-wrap h2 { margin-bottom: 16px; font-size: 22px; }
}

@media (max-width: 430px) {
    .login-form-wrap { padding-right: 15px; padding-left: 15px; }
}
