/** 导入按钮组件样式 */
@import "components/button.css";
@import "theme.css";
@import "carousel.css";
@import "grid.css";

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击反馈 */
    text-decoration: none;
}

/* 主题基础样式 */
body {
    color: var(--text-color);
    background: var(--body-bg);
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

.hidden {
    display: none;
}

/* 认证页面样式 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgb(243, 232, 255) 0%, rgb(245, 240, 255) 50%, rgb(249, 243, 255) 100%);
    padding: 0 16px;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-container .logo {
    color: #007BFF; /* 改为蓝色标志 */
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.auth-container .logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container .logo img {
    height: 60px;
    display: none;
}

.auth-title {
    color: var(--text-color);
    font-size: 24px;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-color-secondary);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

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

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    background: var(--card-bg);
    font-size: 14px;
}

input.large {
    padding: 10px 10px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-helper {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 4px;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-block {
    margin-top: 16px;
    width: 100%;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-color-secondary);
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.social-login {
    display: flex;
    gap: 1rem;
}

.auth-container .btn {
    border: none;
}