/* ============================================================
   本安数智 - 微信小程序管理平台 登录页样式
   居中卡片风格：柔和浅色背景，暖橙只做点缀色
   ============================================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    min-height: 100vh;
    color: #2B2B2B;
    background: #F7F4F0;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow-x: hidden;
}

/* 顶部极淡的暖色光晕，营造柔和氛围 */
body::before {
    content: "";
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(238, 155, 90, 0.10) 0%, rgba(238, 155, 90, 0) 68%);
    border-radius: 50%;
    pointer-events: none;
}

/* 居中主容器 */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* ============ 顶部品牌区 ============ */
.brand {
    margin-bottom: 34px;
}

.brand-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #2B2B2B;
}

.brand .brand-sub {
    margin-top: 10px;
    font-size: 15px;
    letter-spacing: 3px;
    color: #9A948E;
}

.brand .brand-slogan {
    margin-top: 18px;
    font-size: 13px;
    letter-spacing: 2px;
    color: #B8B1AA;
}

/* ============ 登录卡片 ============ */
.login-card {
    background: #fff;
    border: 1px solid #F0ECE7;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(120, 90, 60, 0.08);
    padding: 40px 36px;
    text-align: left;
}

.login-head {
    margin-bottom: 28px;
}

.login-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: #2B2B2B;
    letter-spacing: 1px;
}

.login-head p {
    margin-top: 8px;
    font-size: 14px;
    color: #A8A19A;
}

/* 表单 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #C4BDB5;
    pointer-events: none;
}

.input-wrapper .icon svg {
    width: 100%;
    height: 100%;
}

.form-input {
    width: 100%;
    padding: 13px 46px;
    border: 1px solid #E9E4DE;
    border-radius: 11px;
    font-size: 15px;
    color: #2B2B2B;
    background: #FCFBFA;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input::placeholder {
    color: #C0B9B1;
}

.form-input:focus {
    border-color: #E08640;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(224, 134, 64, 0.12);
}

/* 密码显隐按钮 */
.toggle-pwd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    border: none;
    background: none;
    color: #C4BDB5;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.toggle-pwd svg {
    width: 100%;
    height: 100%;
}

.toggle-pwd:hover {
    color: #E08640;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, #EE9B5A, #E08640);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 6px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.login-btn:hover {
    box-shadow: 0 10px 22px rgba(224, 134, 64, 0.32);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 版权 */
.copyright {
    margin-top: 26px;
    text-align: center;
    font-size: 12px;
    color: #B8B1AA;
}

/* 响应式 */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }

    .brand h1 {
        font-size: 26px;
        letter-spacing: 4px;
    }
}
