/* 园贝AI - 登录页样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; height: 100vh; overflow: hidden; }

.login-container { display: flex; height: 100vh; background: #f5f7fa; }

/* 左侧品牌区域 */
.login-left { flex: 1; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; min-width: 400px; }
.login-left::before { content: ''; position: absolute; width: 600px; height: 600px; background: rgba(255,255,255,0.05); border-radius: 50%; top: -200px; left: -200px; }
.login-left::after { content: ''; position: absolute; width: 400px; height: 400px; background: rgba(255,255,255,0.05); border-radius: 50%; bottom: -100px; right: -100px; }
.brand-area { position: relative; z-index: 2; text-align: center; color: #fff; padding: 40px; }
.brand-logo { width: 80px; height: 80px; background: rgba(255,255,255,0.2); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 36px; backdrop-filter: blur(10px); }
.brand-title { font-size: 36px; font-weight: 700; margin-bottom: 8px; letter-spacing: 2px; }
.brand-subtitle { font-size: 16px; opacity: 0.85; margin-bottom: 40px; }
.brand-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-item { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.12); padding: 12px 16px; border-radius: 12px; font-size: 14px; backdrop-filter: blur(10px); }
.feature-item i { font-size: 18px; opacity: 0.9; }

/* 右侧登录表单 */
.login-right { width: 480px; display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.login-form-wrapper { width: 100%; max-width: 360px; }
.form-header { margin-bottom: 32px; }
.form-header h2 { font-size: 24px; font-weight: 600; color: #1a1a1a; margin-bottom: 24px; }
.login-tabs { display: flex; gap: 24px; border-bottom: 1px solid #e8e8e8; padding-bottom: 12px; }
.tab-item { font-size: 15px; color: #999; cursor: pointer; padding-bottom: 12px; position: relative; transition: color 0.3s; }
.tab-item.active { color: #667eea; font-weight: 500; }
.tab-item.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: #667eea; border-radius: 1px; }

/* 表单元素 */
.form-group { margin-bottom: 20px; }
.input-wrapper { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 10px; padding: 0 14px; height: 48px; transition: border-color 0.3s, box-shadow 0.3s; background: #fafafa; }
.input-wrapper:focus-within { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.1); background: #fff; }
.input-wrapper i { color: #999; font-size: 16px; margin-right: 10px; }
.input-wrapper input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; color: #333; }
.input-wrapper input::placeholder { color: #bbb; }

.sms-code-wrapper { position: relative; }
.sms-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #667eea; font-size: 13px; cursor: pointer; padding: 6px 10px; white-space: nowrap; }
.sms-btn:disabled { color: #ccc; cursor: not-allowed; }
.sms-btn:hover:not(:disabled) { background: rgba(102,126,234,0.08); border-radius: 6px; }

/* 表单选项 */
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; cursor: pointer; }
.checkbox-label input[type="checkbox"] { accent-color: #667eea; }
.forgot-link { font-size: 13px; color: #667eea; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

/* 登录按钮 */
.login-btn { width: 100%; height: 48px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; transition: opacity 0.3s, transform 0.1s; letter-spacing: 2px; }
.login-btn:hover { opacity: 0.92; }
.login-btn:active { transform: scale(0.98); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* 表单底部 */
.form-footer { text-align: center; margin-top: 20px; font-size: 12px; color: #999; }
.form-footer a { color: #667eea; text-decoration: none; }

/* 弹窗 */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: #fff; border-radius: 16px; width: 400px; max-width: 90vw; overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #f0f0f0; }
.modal-header h3 { font-size: 18px; font-weight: 600; }
.modal-close { font-size: 24px; color: #999; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #333; }
.modal-body { padding: 24px; }
.modal-body .form-group label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.modal-body .form-group input { width: 100%; height: 42px; border: 1px solid #e0e0e0; border-radius: 8px; padding: 0 12px; font-size: 14px; outline: none; }
.modal-body .form-group input:focus { border-color: #667eea; }
.modal-body .login-btn { margin-top: 8px; }

/* Toast */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px); background: #333; color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 9999; transition: transform 0.3s; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: #e74c3c; }
.toast.success { background: #27ae60; }

/* 响应式 */
@media (max-width: 900px) {
    .login-left { display: none; }
    .login-right { width: 100%; }
    .login-container { background: #fff; }
}
@media (max-width: 480px) {
    .login-right { padding: 20px; }
    .form-header h2 { font-size: 20px; }
}
