/* 登录注册页面样式 */

.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8fafd 50%, #f0f7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    text-decoration: none;
}

.auth-logo h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #1a73e8, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-logo small {
    font-size: 12px;
    color: var(--gray-500);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--gray-100);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
}

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

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.auth-form {
    text-align: left;
}

.auth-form.hidden {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.form-options a {
    color: var(--primary);
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--gray-100);
}

.auth-divider span {
    position: relative;
    background: var(--white);
    padding: 0 16px;
    font-size: 12px;
    color: var(--gray-500);
}

.social-login {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--gray-50);
}

.auth-role {
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.auth-role label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.back-home {
    display: inline-block;
    margin-top: 24px;
    color: var(--gray-500);
    font-size: 14px;
    text-decoration: none;
}

.back-home:hover {
    color: var(--primary);
}
