@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #f5f7fa;
    overflow: hidden;
}

/* 覆盖原始 global.css 带来的边距等问题 */
form {
    margin: 0;
    padding: 0;
}

.modern-login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: #fff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

.modern-login-banner {
    flex: 1.2;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.modern-login-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    transform: rotate(30deg);
}

.banner-content {
    position: relative;
    z-index: 10;
    padding: 40px;
    text-align: left;
}

.brand-slogan {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.brand-desc {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
}

.banner-decoration {
    width: 60px;
    height: 4px;
    background: #FFD700;
    margin-top: 30px;
    border-radius: 2px;
}

.modern-login-form-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    padding: 0 8%;
    position: relative;
}

.elegant-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 40px;
}

.form-logo {
    max-height: 45px;
    margin-bottom: 25px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.form-header p {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
    transition: color 0.3s;
}

.input-group.is-focused label {
    color: #2a5298;
}

.custom-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fcfcfc;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
}

.custom-input:focus {
    border-color: #2a5298;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    outline: none;
}

/* 兼容原始JS状态样式 */
.custom-input.er {
    border-color: #ff4d4f;
    background: #fff2f0;
}

.custom-input.mt {
    color: #a0a0a0;
}

.action-group {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    user-select: none;
}

/* 隐藏原有JS生成的干扰元素 */
.custom-checkbox b {
    display: none !important;
}

.custom-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2a5298;
}

.check-label .sub-text {
    font-size: 0.8rem;
    color: #aaa;
}

.submit-group {
    display: flex;
    flex-direction: column;
}

.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.25);
    box-sizing: border-box;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 82, 152, 0.35);
    color: #fff;
    text-decoration: none;
}

.error-msg {
    color: #ff4d4f;
    font-size: 0.9rem;
    margin-top: 12px;
    display: block;
    text-align: center;
    min-height: 20px;
}

.form-footer {
    margin-top: 50px;
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
}

.form-footer a {
    color: #2a5298;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .modern-login-banner {
        display: none;
    }

    .modern-login-form-area {
        padding: 0 5%;
    }
}