/* 认证页面样式 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #8B4513 0%, #D2B48C 50%, #F5DEB3 100%);
    overflow: hidden;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.tea-leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(160, 82, 45, 0.3) 3px, transparent 3px),
        radial-gradient(circle at 40% 80%, rgba(139, 69, 19, 0.2) 2px, transparent 2px);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    animation: floatLeaves 20s infinite linear;
}

.tea-steam {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 100px;
    height: 200px;
    background: linear-gradient(to top, transparent, rgba(255, 255, 255, 0.1));
    border-radius: 50px;
    animation: steamRise 3s infinite ease-in-out;
}

@keyframes floatLeaves {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(360deg); }
}

@keyframes steamRise {
    0%, 100% { opacity: 0.3; transform: translateY(0) scale(1); }
    50% { opacity: 0.6; transform: translateY(-20px) scale(1.1); }
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 20px 40px rgba(139, 69, 19, 0.2),
        0 0 0 1px rgba(139, 69, 19, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(139, 69, 19, 0.1);
}

.register-card {
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2rem;
    color: #8B4513;
    animation: leafSway 2s infinite ease-in-out;
}

@keyframes leafSway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.logo h1 {
    font-size: 1.8rem;
    color: #8B4513;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(45deg, #8B4513, #D2B48C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #A0522D;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.half {
    flex: 1;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8B4513;
    font-size: 0.95rem;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #E5D4B1;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #8B4513;
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.toggle-password {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8B4513;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    background: rgba(139, 69, 19, 0.1);
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

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

.strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4444, #ffaa00, #00aa00);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    color: #8B4513;
    min-width: 60px;
}

.verification-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.verification-input {
    flex: 1;
}

.verification-btn {
    padding: 15px 20px;
    background: linear-gradient(45deg, #8B4513, #A0522D);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.verification-btn:hover {
    background: linear-gradient(45deg, #A0522D, #8B4513);
    transform: translateY(-2px);
}

.verification-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me, .agreement {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 0.9rem;
    color: #8B4513;
    cursor: pointer;
}

.remember-me input, .agreement input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #8B4513;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

input:checked + .checkmark {
    background: #8B4513;
}

input:checked + .checkmark::after {
    opacity: 1;
}

.forgot-link {
    color: #8B4513;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #A0522D;
    text-decoration: underline;
}

.auth-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.login-btn {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    color: white;
}

.register-btn {
    background: linear-gradient(45deg, #A0522D, #CD853F);
    color: white;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.3);
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover::before {
    left: 100%;
}

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

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E5D4B1;
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
    color: #8B4513;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #E5D4B1;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.wechat-btn {
    color: #07C160;
    border-color: #07C160;
}

.wechat-btn:hover {
    background: #07C160;
    color: white;
}

.qq-btn {
    color: #12B7F5;
    border-color: #12B7F5;
}

.qq-btn:hover {
    background: #12B7F5;
    color: white;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer p {
    color: #8B4513;
    font-size: 0.9rem;
    margin: 0;
}

.auth-footer a {
    color: #A0522D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #8B4513;
    text-decoration: underline;
}

/* 微信登录模态框样式 */
.wechat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.wechat-modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(139, 69, 19, 0.3);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.wechat-modal-header {
    background: linear-gradient(135deg, #07C160, #00A854);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wechat-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wechat-modal-header i {
    font-size: 1.5rem;
}

.close-wechat-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-wechat-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wechat-modal-body {
    padding: 2rem;
    text-align: center;
}

.wechat-qr-container {
    margin-bottom: 1.5rem;
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px dashed #07C160;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #07C160;
}

.qr-loading i {
    font-size: 2rem;
}

.qr-loading p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

#wechat-qr-frame {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: 15px;
}

.wechat-tips {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #07C160;
}

.wechat-tips p {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wechat-tips p:first-child {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.wechat-tips .tip-text {
    font-size: 0.9rem;
    color: #666;
}

.wechat-tips i {
    color: #07C160;
    font-size: 1.2rem;
}

/* 微信登录按钮特殊样式 */
.social-btn.wechat-btn {
    background: linear-gradient(135deg, #07C160, #00A854);
    border-color: #07C160;
    position: relative;
    overflow: hidden;
}

.social-btn.wechat-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.social-btn.wechat-btn:hover::before {
    left: 100%;
}

.social-btn.wechat-btn:hover {
    background: linear-gradient(135deg, #00A854, #07C160);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 193, 96, 0.4);
}

/* QQ登录按钮样式 */
.social-btn.qq-btn {
    background: linear-gradient(135deg, #12B7F5, #0099E5);
    border-color: #12B7F5;
}

.social-btn.qq-btn:hover {
    background: linear-gradient(135deg, #0099E5, #12B7F5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 183, 245, 0.4);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 微信登录状态指示器 */
.wechat-status {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* 响应式设计 */
/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .social-login {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .social-btn {
        width: 100%;
    }
    
    .wechat-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .wechat-modal-body {
        padding: 1.5rem;
    }
    
    .wechat-qr-container {
        height: 250px;
    }
    
    #wechat-qr-frame {
        height: 250px;
    }
}
    
    .verification-btn {
        width: 100%;
    }

/* 动画效果 */
.auth-card {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单验证样式 */
.input-wrapper.error input {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.input-wrapper.success input {
    border-color: #00aa00;
    background: rgba(0, 170, 0, 0.05);
}

.error-message {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.success-message {
    color: #00aa00;
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}