/* 飞书免登录示例应用样式 */

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

/* 用户信息展示区域 */
.img {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.img_div {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.img_div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hello_text {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 300;
}

.hello_text_name {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: 500;
}

.hello_text_welcome {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* 飞书图标 */
.icon {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon img {
    width: 48px;
    height: 48px;
    opacity: 0.7;
}

/* 加载状态 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误信息样式 */
.error {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.error-title {
    font-weight: bold;
    margin-bottom: 10px;
}

/* 按钮样式 */
.btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn:hover {
    background: #0056b3;
}

.btn:active {
    background: #004085;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .img_div {
        width: 80px;
        height: 80px;
    }
    
    .hello_text {
        font-size: 20px;
    }
    
    .hello_text_name {
        font-size: 18px;
    }
} 