/* 登录注册页面样式 */
* {
    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;
    background: #f0f2f5;
    min-height: 100vh;
}

/* 主容器 */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* 左侧表单区域 */
.auth-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: #fff;
    max-width: 480px;
}

/* 头部 */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.logo i {
    font-size: 40px;
    color: #fff;
}

.auth-header h1 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-header p {
    font-size: 14px;
    color: #666;
}

/* 表单 */
.auth-form {
    width: 100%;
    max-width: 360px;
}

.form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 48px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #bfbfbf;
}

/* 密码显示切换 */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
}

.toggle-password:hover {
    color: #667eea;
}

/* 验证图标 */
.validation-icon {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.validation-icon .success {
    color: #52c41a;
}

.validation-icon .error {
    color: #ff4d4f;
}

/* 表单提示 */
.form-tip {
    font-size: 12px;
    margin-top: -12px;
    margin-bottom: 12px;
    padding-left: 4px;
    color: #999;
}

.form-tip.success {
    color: #52c41a;
}

.form-tip.error {
    color: #ff4d4f;
}

/* 密码强度 */
.password-strength {
    margin-top: -8px;
    margin-bottom: 16px;
}

.strength-bar {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-fill.weak {
    background: #ff4d4f;
}

.strength-fill.medium {
    background: #faad14;
}

.strength-fill.strong {
    background: #52c41a;
}

.strength-text {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.strength-text.weak {
    color: #ff4d4f;
}

.strength-text.medium {
    color: #faad14;
}

.strength-text.strong {
    color: #52c41a;
}

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

.remember-me,
.agreement {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    cursor: pointer;
}

.remember-me input,
.agreement input {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.agreement {
    font-size: 12px;
    flex-wrap: wrap;
}

.agreement a {
    color: #667eea;
    text-decoration: none;
}

.agreement a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.auth-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 底部 */
.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 右侧背景区域 */
.auth-background {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.bg-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    max-width: 400px;
}

.bg-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
    font-weight: 600;
}

.bg-content p {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.features {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-item i {
    font-size: 32px;
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.feature-item span {
    font-size: 14px;
    opacity: 0.9;
}

/* 消息提示 */
.message-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    z-index: 1000;
    transition: transform 0.3s ease;
    border-left: 4px solid #52c41a;
}

.message-toast.show {
    transform: translateX(-50%) translateY(0);
}

.message-toast.error {
    border-left-color: #ff4d4f;
}

.message-toast.error i {
    color: #ff4d4f;
}

.message-toast i {
    color: #52c41a;
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-box {
        max-width: 100%;
        min-height: 100vh;
    }

    .auth-background {
        display: none;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .logo {
        width: 64px;
        height: 64px;
    }

    .logo i {
        font-size: 32px;
    }
}

/* 加载动画 */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
