/*
 * 浪迹 - 登录/注册页样式
 * 从 style.css 和 login.html 内联样式迁移而来
 * 颜色变量统一使用 tokens.css 中的 --primary / --primary-hover
 */

/* 基础重置 */
* {
    box-sizing: border-box;
}

/* Body 基础样式 */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    line-height: 1.6;
}

/* 按钮基础样式 */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn.primary {
    background: var(--primary);
    color: white;
}

.btn.primary:hover {
    background: var(--primary-hover);
}

/* 登录容器 */
.auth-container {
    max-width: 360px;
    margin: 80px auto;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 24px;
}

.auth-container .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

/* 标签页 */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* 表单 */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form .form-row {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

.auth-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 8px;
}

/* 消息提示 */
.auth-message {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
}

.auth-message.error { color: #dc2626; }
.auth-message.success { color: #16a34a; }
