/* 登录页面样式 - WeChat绿色主题 */

/* 登录容器 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #07c160 0%, #05a050 100%);
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 登录卡片 */
.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

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

/* 应用图标 */
.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    filter: drop-shadow(0 8px 24px rgba(7, 193, 96, 0.3));
}

.auth-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 标题 */
.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* 副标题 */
.auth-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* 表单 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 输入框容器 */
.auth-input-group {
    position: relative;
}

/* 输入框 */
.auth-input {
    width: 100%;
    height: 50px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    background: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #07c160;
    background: white;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.auth-input::placeholder {
    color: #999;
}

/* 密码可见性切换按钮 */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #07c160;
}

/* 登录按钮 */
.auth-button {
    height: 50px;
    background: linear-gradient(135deg, #07c160, #05a050);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 193, 96, 0.4);
}

.auth-button:active:not(:disabled) {
    transform: translateY(0);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 加载状态 */
.auth-button.loading {
    color: transparent;
}

.auth-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 错误消息 */
.auth-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 尝试次数警告 */
.auth-warning {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #d48806;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
}

/* 帮助信息 */
.auth-help {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .auth-container {
        padding: 16px;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-icon {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }

    .auth-icon-img {
        width: 100%;
        height: 100%;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .auth-input,
    .auth-button {
        height: 48px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .auth-card {
        background: #1a1a1a;
        color: white;
    }
    
    .auth-title {
        color: white;
    }
    
    .auth-subtitle {
        color: #999;
    }
    
    .auth-input {
        background: #2a2a2a;
        border-color: #404040;
        color: white;
    }
    
    .auth-input:focus {
        background: #333;
        border-color: #07c160;
    }
    
    .auth-help {
        border-top-color: #333;
        color: #999;
    }
}

/* 安全提示 */
.security-tips {
    margin-top: 20px;
    padding: 16px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    font-size: 12px;
    color: #52c41a;
    text-align: left;
}

.security-tips ul {
    margin: 8px 0 0 0;
    padding-left: 16px;
}

.security-tips li {
    margin-bottom: 4px;
}
