/* 认证页面样式 */

body {
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    display: flex;
    width: 900px;
    max-width: 100%;
    height: 700px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 内容区 */
.auth-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

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

.auth-header .logo {
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    color: #FF6B35;
    margin-bottom: 20px;
    text-decoration: none;
}

.auth-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.auth-header p {
    font-size: 16px;
    color: #666;
}

/* 表单区 */
.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

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

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.input-with-icon input:focus {
    border-color: #FF6B35;
}

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    font-size: 12px;
    color: #FF6B35;
    text-decoration: none;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    width: 32px;
}

/* 记住我复选框 */
.remember-me {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 0;
    height: 18px;
    width: 18px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #eee;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #FF6B35;
    border-color: #FF6B35;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 登录按钮 */
.auth-button {
    padding: 12px;
    background-color: #FF6B35;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.auth-button:hover {
    background-color: #e85a26;
}

/* 社交登录 */
.social-login {
    margin: 20px 0;
    text-align: center;
}

.social-login p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #eee;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-button i {
    margin-right: 8px;
}

.social-button.google {
    color: #DB4437;
}

.social-button.google:hover {
    background-color: #DB4437;
    color: white;
}

.social-button.wechat {
    color: #07C160;
}

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

/* 页脚 */
.auth-footer {
    text-align: center;
    margin-top: auto;
}

.auth-footer p {
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 500;
}

/* 图片区域 */
.auth-image {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.overlay-content {
    color: white;
    max-width: 80%;
}

.overlay-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.overlay-content p {
    font-size: 16px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        height: auto;
        width: 90%;
        max-width: 500px;
    }
    
    .auth-content {
        padding: 30px 20px;
    }
    
    .auth-image {
        width: 100%;
        height: 200px;
        order: -1; /* 将图片移到顶部 */
    }
    
    .image-overlay {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        width: 95%;
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-button {
        width: 100%;
    }
}

.password-strength {
    margin-top: 8px;
}

.strength-meter {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.strength-segment {
    height: 4px;
    flex: 1;
    background-color: #ddd;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: block;
} 