/* 登录/注册页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

#app {
    min-height: 100vh;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* 左侧横幅 */
.auth-banner {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.banner-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 500px;
}

.banner-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.banner-logo .logo-icon {
    font-size: 4em;
}

.banner-logo h1 {
    font-size: 2.5em;
    font-weight: 700;
}

.banner-slogan {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
}

.banner-features {
    list-style: none;
    padding: 0;
}

.banner-features li {
    font-size: 1.1em;
    margin-bottom: 20px;
    padding-left: 10px;
    opacity: 0.9;
}

/* 右侧表单 */
.auth-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
}

.auth-form {
    width: 100%;
    max-width: 480px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: #999;
    font-size: 1em;
}

.login-form,
.register-form {
    margin-top: 30px;
}

.el-form-item__label {
    font-weight: 500;
    color: #333;
    font-size: 0.95em;
}

.el-input__wrapper {
    padding: 12px 15px;
    border-radius: 8px;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    height: 48px;
    font-size: 1.1em;
    border-radius: 8px;
    margin-top: 10px;
}

/* 表单底部 */
.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.form-footer span {
    margin-right: 5px;
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 10px;
}

.strength-bars {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s;
}

.strength-bar.weak {
    background: #f56c6c;
}

.strength-bar.medium {
    background: #e6a23c;
}

.strength-bar.strong {
    background: #67c23a;
}

.strength-text {
    font-size: 0.85em;
    color: #999;
}

/* 分隔线 */
.el-divider {
    margin: 30px 0;
}

.el-divider__text {
    color: #999;
    font-size: 0.9em;
}

/* 社交登录 */
.social-login {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 验证码样式 */
.captcha-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-wrapper .el-input {
    flex: 1;
}

.captcha-display {
    min-width: 120px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
    padding: 0 15px;
}

.captcha-display:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.captcha-text {
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 2px;
}

.refresh-icon {
    color: white;
    font-size: 1.2em;
}

/* 响应式 */
@media (max-width: 1024px) {
    .auth-banner {
        display: none;
    }
    
    .auth-form-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .form-header h2 {
        font-size: 1.8em;
    }
    
    .auth-form {
        max-width: 100%;
    }
}
