/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #7ED321;
    --secondary-green: #9FE870;
    --accent-yellow: #F5D544;
    --dark-gray: #2C3E50;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;
    --shadow-light: rgba(126, 211, 33, 0.1);
    --shadow-medium: rgba(126, 211, 33, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-yellow) 0%, #FFE066 100%);
    --gradient-background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-background);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景装饰 */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 40%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 主容器 */
.login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* 左侧装饰区域 */
.decoration-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.brand-section {
    max-width: 500px;
    text-align: center;
}

.logo-container {
    margin-bottom: 3rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.feature-cards {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 右侧登录区域 */
.login-section {
    flex: 0 0 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 0.95rem;
}

/* 身份选择器 */
.role-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--light-gray);
    border-radius: 16px;
    padding: 0.5rem;
}

.role-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.role-option:hover {
    background: rgba(126, 211, 33, 0.1);
}

.role-option.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.role-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.role-option span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 登录表单 */
.login-form {
    margin-bottom: 1.5rem;
}

.login-input .el-input__inner {
    height: 50px;
    border-radius: 12px;
    border: 2px solid #E8ECF0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.login-input .el-input__inner:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px var(--shadow-light);
}

.login-input .el-input__prefix {
    left: 15px;
}

.login-input .el-input__inner {
    padding-left: 45px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-checkbox .el-checkbox__label {
    font-size: 0.9rem;
    color: #666;
}

.forgot-password {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary-green);
}

.login-button {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 8px 25px var(--shadow-medium);
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px var(--shadow-medium);
}

/* 其他登录方式 */
.alternative-login {
    margin: 2rem 0;
}

.divider {
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E8ECF0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #999;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    height: 45px;
    border-radius: 12px;
    border: 2px solid #E8ECF0;
    background: white;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.wechat-btn:hover {
    border-color: #07C160;
    color: #07C160;
}

.qq-btn:hover {
    border-color: #12B7F5;
    color: #12B7F5;
}

/* 注册链接 */
.register-link {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.register-link a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: var(--secondary-green);
}

/* 注册对话框 */
.register-dialog .el-dialog {
    border-radius: 16px;
    overflow: hidden;
}

.register-dialog .el-dialog__header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
}

.register-dialog .el-dialog__title {
    color: white;
    font-weight: 600;
}

.register-dialog .el-dialog__body {
    padding: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .decoration-section {
        flex: none;
        min-height: 40vh;
        padding: 1rem;
    }
    
    .login-section {
        flex: none;
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .feature-cards {
        display: none;
    }
    
    .role-selector {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .role-option {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .role-icon {
        margin-bottom: 0;
    }
}

/* Element UI 样式覆盖 */
.el-form-item {
    margin-bottom: 1.5rem;
}

.el-form-item__error {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.el-checkbox__input.is-checked .el-checkbox__inner {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.el-button--primary {
    background: var(--gradient-primary);
    border: none;
}

.el-select .el-input__inner:focus {
    border-color: var(--primary-green);
}

.el-input__inner:focus {
    border-color: var(--primary-green);
}

/* 加载动画 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.login-button.is-loading {
    animation: pulse 1.5s infinite;
}