* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    background: #eef1f5;
    min-height: 100vh;
    display: flex;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== 左侧品牌展示区 ==================== */
.login-decor {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0a2f9b 0%, #0b47d6 45%, #0c7e93 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 56px 32px;
}

.login-decor::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 360px at 80% 20%, rgba(255, 255, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.decor-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.decor-logo .logo-icon {
    height: 44px;
    width: auto;
    display: block;
}

.decor-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.decor-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

.decor-sub {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 14px;
}

.decor-desc {
    font-size: 14px;
    color: #fff;
    letter-spacing: 1px;
}

.decor-copyright {
    position: relative;
    z-index: 1;
    font-size: 13px;
    opacity: 0.72;
}

/* ==================== 右侧表单操作区 ==================== */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #eef1f5;
}

.login-card {
    width: 480px;
    max-width: 100%;
    background: #f9fafc;
    border: 1px solid #e6e9f0;
    border-radius: 12px;
    padding: 44px 40px 36px;
    box-shadow: 0 6px 24px rgba(15, 30, 60, 0.06);
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: #172033;
    margin-bottom: 10px;
}

.login-sub {
    font-size: 14px;
    color: #8a919f;
    margin-bottom: 30px;
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:hover {
    border-color: #c6ccd6;
}

.input-wrapper:focus-within {
    border-color: #1663f0;
    box-shadow: 0 0 0 3px rgba(22, 99, 240, 0.12);
}

.input-icon {
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #9aa1ad;
}

.input-icon svg {
    width: 17px;
    height: 17px;
}

.input-wrapper input {
    flex: 1;
    height: 46px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    padding: 0 14px 0 0;
}

.input-wrapper input::placeholder {
    color: #b6bcc8;
}

.login-tip {
    display: none;
    margin: -6px 0 12px;
    font-size: 13px;
    color: #d4382e;
}

.login-tip.show {
    display: block;
}

.btn-submit {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: #0b49d8;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #0a3fbf;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==================== 返回与分割线 ==================== */
.login-divider {
    height: 1px;
    background: #e8ebf1;
    margin: 26px 0 18px;
}

.login-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
    transition: color 0.2s;
}

.login-back a:hover {
    color: #1663f0;
}

.login-back a svg {
    width: 14px;
    height: 14px;
}

/* ==================== 提示弹窗 ==================== */
.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-mask.show {
    display: flex;
}

.modal-box {
    width: calc(100% - 48px);
    max-width: 360px;
    background: #fff;
    border-radius: 12px;
    padding: 32px 36px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    animation: modal-pop 0.25s ease;
}

.modal-box h3 {
    font-size: 18px;
    color: #172033;
    margin-bottom: 12px;
}

.modal-box p {
    font-size: 14px;
    color: #8a919f;
    margin-bottom: 24px;
}

.modal-btn {
    border: none;
    border-radius: 8px;
    background: #1663f0;
    color: #fff;
    font-size: 14px;
    padding: 9px 34px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn:hover {
    background: #0f52cc;
}

@keyframes modal-pop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================== 响应式 ==================== */
@media (max-width: 960px) {
    .login-decor {
        display: none;
    }

    .login-main {
        padding: 40px 16px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 22px 26px;
    }

    .login-title {
        font-size: 22px;
    }
}
