/* 登录页 — 樱青风格 v3 · 双栏布局 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Noto Serif SC", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
    background: #faf7f2;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 背景装饰 ========== */
.login-bg {
    position: relative;
    min-height: 100vh;
    background: #faf7f2;
    overflow: hidden;
}
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(168,120,120,0.35), transparent 70%);
    top: -150px; left: -150px;
    animation: float 18s ease-in-out infinite;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(79,107,88,0.28), transparent 70%);
    bottom: -120px; right: -100px;
    animation: float 22s ease-in-out infinite reverse;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(200,154,90,0.18), transparent 70%);
    top: 40%; left: 50%;
    animation: float 26s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -30px); }
    66% { transform: translate(-30px, 40px); }
}

/* ========== 双栏布局 ========== */
.login-wrap {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 24px;
    gap: 60px;
}

/* ========== 左侧品牌区 ========== */
.login-brand {
    flex: 1;
    color: #3a2a2a;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.brand-logo {
    width: 80px; height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, #b89090 0%, #a87878 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 36px rgba(168, 120, 120, 0.4);
    margin-bottom: 32px;
}
.brand-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 8px;
    color: #2a2a2a;
    margin-bottom: 10px;
}
.brand-sub {
    font-size: 13px;
    letter-spacing: 6px;
    color: #a87878;
    margin-bottom: 28px;
    font-weight: 500;
}
.brand-desc {
    font-size: 14px;
    color: #8a8a8a;
    line-height: 1.8;
    margin-bottom: 36px;
}
.brand-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 360px;
}
.feat {
    font-size: 13px;
    color: #5a5a5a;
    padding: 10px 16px;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    border: 1px solid #ece5dc;
    backdrop-filter: blur(4px);
}

/* ========== 右侧登录面板 ========== */
.login-panel {
    width: 440px;
    flex-shrink: 0;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}
.panel-inner {
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px 36px;
    box-shadow: 0 24px 64px rgba(120, 100, 90, 0.14);
    border: 1px solid #ece5dc;
}
.panel-title {
    font-size: 26px;
    font-weight: 600;
    color: #2a2a2a;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.panel-sub {
    font-size: 13px;
    color: #a8a8a8;
    margin-bottom: 36px;
}

/* 表单字段 */
.field { margin-bottom: 24px; }
.field-label {
    display: block;
    font-size: 13px;
    color: #5a5a5a;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 输入框 */
.input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f0e8;
    border: 2px solid #e8e1d6;
    border-radius: 12px;
    height: 50px;
    padding: 0 14px 0 44px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input-box:focus-within {
    border-color: #a87878;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(168, 120, 120, 0.10);
}
.input-icon {
    position: absolute;
    left: 14px;
    width: 20px; height: 20px;
    color: #b8b0a6;
    transition: color 0.2s;
}
.input-box:focus-within .input-icon { color: #a87878; }
.input-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #2a2a2a;
    outline: none;
    font-family: inherit;
    padding: 0;
    min-width: 0;
}
.input-box input::placeholder {
    color: #c8c0b6;
    font-size: 13px;
}
/* 禁浏览器 autocomplete 蓝底 */
.input-box input:-webkit-autofill {
    -webkit-text-fill-color: #2a2a2a;
    transition: background-color 5000s ease-in-out 0s;
}
.input-box:focus-within input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
}
/* 密码切换按钮 */
.toggle-pwd {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #c8c0b6;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.toggle-pwd:hover { color: #a87878; }

/* 错误提示 */
.err-msg {
    background: #fdf0f0;
    border: 1px solid #e8c8c8;
    color: #b56161;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 20px;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #b89090 0%, #a87878 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 12px;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 8px 28px rgba(168, 120, 120, 0.35);
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.15s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.submit-btn:hover:not(:disabled) {
    box-shadow: 0 10px 32px rgba(168, 120, 120, 0.45);
    transform: translateY(-1px);
}
.submit-btn:active:not(:disabled) {
    transform: translateY(0);
    opacity: 0.92;
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.btn-loading {
    width: 22px; height: 22px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 底部 */
.panel-foot {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: #c8c0b6;
    letter-spacing: 1px;
}
.panel-foot .sep { margin: 0 8px; color: #ddd4ca; }

/* ========== 响应式 ========== */
@media (max-width: 860px) {
    .login-wrap {
        flex-direction: column;
        gap: 40px;
        padding: 60px 20px;
    }
    .login-brand { text-align: center; }
    .brand-features { margin: 0 auto; }
    .login-panel { width: 100%; max-width: 420px; }
    .brand-title { font-size: 36px; letter-spacing: 4px; }
}
@media (max-width: 420px) {
    .panel-inner { padding: 36px 28px 28px; }
    .brand-features { grid-template-columns: 1fr; }
}
