/* ========== 登录注册页全局 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 50%, #e8ecf1 100%);
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
#app { width: 100%; display: flex; justify-content: center; padding: 20px; }

.auth-container {
    display: flex; width: 900px; min-height: 560px;
    background: #fff; border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
}

/* ========== 左侧品牌区 ========== */
.auth-banner {
    width: 42%; background: linear-gradient(150deg, #2c3e50 0%, #34495e 100%);
    display: flex; align-items: center; justify-content: center; padding: 48px 36px;
    position: relative; overflow: hidden;
}
.auth-banner::before {
    content: ''; position: absolute; top: -50%; right: -30%;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.04); border-radius: 50%;
}
.auth-banner::after {
    content: ''; position: absolute; bottom: -40%; left: -20%;
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.03); border-radius: 50%;
}
.banner-content { position: relative; z-index: 1; color: #fff; }
.banner-content h1 { font-size: 30px; margin-bottom: 12px; }
.banner-content p { font-size: 14px; opacity: 0.8; margin-bottom: 36px; line-height: 1.6; }
.banner-features { display: flex; flex-direction: column; gap: 14px; }
.feature-item {
    font-size: 14px; padding: 10px 16px;
    background: rgba(255,255,255,0.08); border-radius: 10px;
}

/* ========== 右侧表单区 ========== */
.auth-form {
    width: 58%; padding: 40px 48px;
    display: flex; flex-direction: column;
}
.form-header { display: flex; gap: 0; margin-bottom: 32px; }
.form-header button {
    flex: 1; padding: 12px 0; border: none; border-bottom: 3px solid transparent;
    background: none; font-size: 17px; font-weight: 600; color: #aaa; cursor: pointer;
    transition: all 0.3s;
}
.form-header button.active {
    color: #2c3e50; border-bottom-color: #2c3e50;
}
.form-header button:hover:not(.active) { color: #999; }
.form-body { flex: 1; }
.form-body h2 { font-size: 24px; color: #333; margin-bottom: 6px; }
.subtitle { font-size: 13px; color: #999; margin-bottom: 24px; }

/* ========== 输入框 ========== */
.input-group { margin-bottom: 18px; }
.input-group label {
    display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px;
}
.input-group input {
    width: 100%; padding: 12px 16px; border: 2px solid #e8e8e8; border-radius: 10px;
    font-size: 14px; color: #333; outline: none; background: #fafafa;
    transition: border-color 0.3s, background 0.3s;
}
.input-group input:focus { border-color: #2c3e50; background: #fff; }
.input-group input::placeholder { color: #ccc; }

/* 验证码输入行：输入框 + 按钮并排 */
.input-row { display: flex; gap: 10px; }
.input-row input { flex: 1; }
.btn-send-code {
    flex-shrink: 0; padding: 0 16px;
    border: 2px solid #2c3e50; border-radius: 10px;
    background: #fff; color: #2c3e50; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: all 0.3s;
}
.btn-send-code:hover { background: #2c3e50; color: #fff; }
.btn-send-code:disabled { border-color: #ccc; color: #ccc; cursor: not-allowed; background: #fafafa; }

/* ========== 消息提示 ========== */
.error-msg { color: #e74c3c; font-size: 13px; text-align: center; margin: 8px 0; }
.success-msg { color: #27ae60; font-size: 13px; text-align: center; margin: 8px 0; }

/* ========== 提交按钮 ========== */
.btn-submit {
    width: 100%; padding: 14px; margin-top: 8px;
    border: none; border-radius: 10px;
    background: #2c3e50;
    color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
    transition: all 0.3s; letter-spacing: 2px;
}
.btn-submit:hover { background: #34495e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(44,62,80,0.25); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ========== 返回首页 ========== */
.back-home { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.back-home a { color: #999; text-decoration: none; font-size: 13px; transition: color 0.3s; }
.back-home a:hover { color: #2c3e50; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .auth-container { flex-direction: column; width: 100%; min-height: auto; }
    .auth-banner { width: 100%; padding: 32px 28px; }
    .auth-form { width: 100%; padding: 32px 28px; }
    .auth-banner::before, .auth-banner::after { display: none; }
}
