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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 背景装饰 */
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.background-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    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;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 登录内容 */
.login-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Logo 区域 */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

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

.logo-icon i {
    font-size: 36px;
    color: white;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 16px;
    color: #718096;
    font-weight: 500;
}

/* 登录主体 */
.login-body {
    margin-bottom: 30px;
}

/* 欢迎区域 */
.welcome-section {
    text-align: center;
}

/* 跳转提示 */
.redirecting-message {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.redirecting-message i {
    font-size: 24px;
    color: #667eea;
}

.redirecting-message p {
    margin: 0;
    font-size: 16px;
    color: #667eea;
    font-weight: 500;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 16px rgba(72, 187, 120, 0.3);
}

.user-avatar i {
    font-size: 32px;
    color: white;
}

.welcome-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 16px;
    color: #718096;
    margin-bottom: 30px;
}

/* 登录区域 */
.login-section {
    text-align: center;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 16px;
    color: #718096;
    margin-bottom: 30px;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 48px;
}


.btn-secondary {
    background: rgba(113, 128, 150, 0.1);
    color: #718096;
    border: 1px solid rgba(113, 128, 150, 0.2);
}

.btn-secondary:hover {
    background: rgba(113, 128, 150, 0.2);
    transform: translateY(-1px);
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    width: 100%;
    font-size: 18px;
    padding: 16px 24px;
}

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

/* 功能特性 */
.login-features {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(113, 128, 150, 0.1);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 14px;
}

.feature-item i {
    font-size: 20px;
    color: #667eea;
}

/* 页脚 */
.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(113, 128, 150, 0.1);
}

.footer-text {
    font-size: 14px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .welcome-title,
    .login-title {
        font-size: 20px;
    }
    
    .login-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-item {
        flex-direction: row;
        justify-content: center;
    }
}

/* Token申请区域样式 */
.token-apply-section {
    margin-top: 20px;
    text-align: center;
}

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

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.btn-token-apply {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    width: 100%;
    font-size: 16px;
    padding: 14px 24px;
    margin-bottom: 8px;
}

.btn-token-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.4);
}

.token-apply-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

