@charset "utf-8";
/*
 * login-modern.css
 * 登录页现代化样式（配合重写后的单卡片居中结构）
 */

:root {
    --lg-primary: #2f6fed;
    --lg-primary-dark: #1a54d6;
    --lg-text: #1f2937;
    --lg-muted: #6b7280;
    --lg-border: #e6e9ef;
    --lg-danger: #e5484d;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #16305e;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 全屏渐变背景 + 垂直水平居中 */
.banner.login-page {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 16px;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(79, 134, 255, .32), transparent 46%),
        radial-gradient(circle at 82% 80%, rgba(14, 165, 164, .26), transparent 46%),
        linear-gradient(150deg, #0f1f3d 0%, #16305e 52%, #1c3d74 100%);
    background-color: #16305e;
}

.login-wrap.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
}

/* 白色卡片 */
.login-card#topborder {
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 38px 34px 30px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 30px 80px rgba(4, 12, 32, .42) !important;
}

/* Logo 与标题 */
.login-logo {
    display: block;
    height: 64px;
    width: auto;
    margin: 0 auto 16px;
}
.login-title {
    margin: 0 0 26px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--lg-text);
    letter-spacing: 3px;
}

/* 表单 */
.login-form { display: block; }
.login-field {
    position: relative;
    margin-bottom: 16px;
}
.login-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--lg-border);
    border-radius: 9px;
    font-size: 14px;
    color: var(--lg-text);
    background: #fbfcfe;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.login-input:focus {
    outline: none;
    border-color: var(--lg-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, .13);
}
.login-input::placeholder { color: #9aa3b2; }

/* 验证码行（输入框 + 按钮/图片） */
.login-field-code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.login-field-code .login-input {
    flex: 1 1 auto;
    min-width: 0;
}
.login-field-code .yzm_btn {
    flex: 0 0 auto;
    height: 46px;
    line-height: 46px;
    padding: 0 16px;
    border-radius: 9px;
    background: #eef3ff;
    color: var(--lg-primary);
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: all .16s ease;
}
.login-field-code .yzm_btn:hover {
    background: var(--lg-primary);
    color: #ffffff;
    text-decoration: none;
}
.login-field-code .imgCaptcha-Gen {
    flex: 0 0 auto;
    height: 46px;
    width: 120px;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid var(--lg-border);
    cursor: pointer;
}
.login-field-code .switch {
    flex: 0 0 auto;
    color: var(--lg-primary);
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
}
.login-field-code .switch:hover {
    color: var(--lg-primary-dark);
    text-decoration: underline;
}
.login-field-code .yzm-tip {
    flex-basis: 100%;
    order: 9;
    margin-top: 2px;
    color: var(--lg-muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

/* 登录按钮 */
.login-btn {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(90deg, var(--lg-primary), var(--lg-primary-dark));
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 6px;
    cursor: pointer;
    transition: box-shadow .16s ease, transform .16s ease;
}
.login-btn:hover {
    box-shadow: 0 10px 22px rgba(47, 111, 237, .35);
}
.login-btn:active { transform: translateY(1px); }
.login-btn:disabled {
    opacity: .72;
    cursor: not-allowed;
}

/* 校验提示 */
.field-validation-error {
    display: block;
    margin-top: 4px;
    color: var(--lg-danger);
    font-size: 12px;
    text-align: left;
}
.field-validation-valid { display: none; }
.login-field-code .field-validation-error {
    flex-basis: 100%;
    order: 10;
    margin-top: 6px;
}
.input-validation-error {
    border-color: var(--lg-danger) !important;
    background-color: #fff5f5 !important;
}
.validation-summary-errors {
    margin: 0 0 12px;
    padding: 8px 10px;
    list-style: none;
    color: var(--lg-danger);
    font-size: 12px;
    background: #fbe3e4;
    border: 1px dashed var(--lg-danger);
    border-radius: 6px;
}

/* 底部备案 */
.foot {
    flex: 0 0 auto;
    padding: 14px 10px;
    text-align: center;
}
.foot a.forget {
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    text-decoration: none;
}
.foot a.forget:hover {
    color: rgba(255, 255, 255, .85);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .login-card#topborder {
        padding: 30px 22px 26px !important;
    }
}
