/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 30px;
}

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

.logo-image {
    height: 40px;
    margin-right: 15px;
}

.header h1 {
    font-size: 32px;
    color: #4d6bf1;
    margin-bottom: 0;
}

.header h2 {
    font-size: 20px;
    color: #666;
    font-weight: normal;
}

.primary-button {
    background-color: #4d6bf1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
    width: 100%;
}

.primary-button:hover {
    background-color: #3f57c0;
}

.primary-button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

.secondary-button {
    background-color: white;
    color: #4d6bf1;
    border: 1px solid #4d6bf1;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.secondary-button:hover {
    background-color: #f0f3ff;
}

.footer {
    margin-top: auto;
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 14px;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4d6bf1;
}

.error-message {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 15px;
    min-height: 20px;
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .header h2 {
        font-size: 16px;
    }
}
