/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    background-image: linear-gradient(120deg, #f0f4f8 0%, #d9e2ec 100%);
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 容器样式 */
.page-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.auth-container {
    max-width: 400px;
    width: 100%;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

/* Logo样式 */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 80px;
    height: 80px;
    background-color: #2c5aa0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 客服电话 */
.customer-service {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.customer-service a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* 表单标题 */
.form-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.form-control {
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* 按钮样式 */
.auth-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: #2c5aa0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3);
}

.auth-btn:hover {
    background-color: #1e4287;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.4);
    transform: translateY(-1px);
}

/* 链接样式 */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* 切换表单链接 */
.toggle-form {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.toggle-form a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.toggle-form a:hover {
    text-decoration: underline;
}

/* 错误提示 */
.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* 密码可见性切换按钮 */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

/* 密码强度指示器 */
.password-strength {
    height: 5px;
    background-color: #e9ecef;
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
}

.strength-weak .strength-bar {
    width: 33%;
    background-color: #dc3545;
}

.strength-medium .strength-bar {
    width: 66%;
    background-color: #ffc107;
}

.strength-strong .strength-bar {
    width: 100%;
    background-color: #28a745;
}

/* 手机优化 */
@media (max-width: 480px) {
    .auth-container {
        margin: 1rem;
        padding: 1.25rem;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .logo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    footer {
        padding: 1rem;
        position: static;
        margin-top: 2rem;
    }
}