/* 登录页面样式 */
.login-container {
    padding: 50px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 400px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-header p a {
    color: #ff6700;
    text-decoration: none;
    font-weight: 600;
}

.login-header p a:hover {
    text-decoration: underline;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"],
.login-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="email"]:focus,
.login-form input[type="tel"]:focus {
    border-color: #ff6700;
    outline: none;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

.toggle-password:hover {
    color: #666;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.forgot-password a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    color: #ff6700;
    text-decoration: underline;
}

.login-error, .register-error {
    color: #e74c3c;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.btn-login {
    width: 100%;
    padding: 12px 0;
    background-color: #ff6700;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #ff4900;
}

.btn-link {
    display: inline-block;
    padding: 10px 30px;
    background-color: #fff;
    color: #ff6700;
    border: 1px solid #ff6700;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-link:hover {
    background-color: #ff6700;
    color: #fff;
}

.other-login {
    margin-top: 30px;
    text-align: center;
}

.other-login p {
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.other-login p::before,
.other-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #ddd;
}

.other-login p::before {
    left: 0;
}

.other-login p::after {
    right: 0;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-login a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s;
}

.social-login a.wechat {
    background-color: #07c160;
    color: white;
}

.social-login a.qq {
    background-color: #12b7f5;
    color: white;
}

.social-login a.weibo {
    background-color: #e6162d;
    color: white;
}

.social-login a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-link {
    margin-top: 15px;
}

/* 注册页面特定样式 */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.verification-code {
    display: flex;
    gap: 10px;
}

.verification-code input {
    flex: 1;
}

.verification-code button {
    padding: 0 15px;
    white-space: nowrap;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 110px;
}

.verification-code button:hover {
    background-color: #ff6700;
    color: #fff;
    border-color: #ff6700;
}

.verification-code button:disabled {
    background-color: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

.agreement {
    margin-bottom: 20px;
}

.agreement label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.agreement input {
    margin-right: 8px;
}

.agreement a {
    color: #ff6700;
    margin-left: 5px;
    text-decoration: none;
}

.agreement a:hover {
    text-decoration: underline;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #ff6700;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #ff4900;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 订阅表单 */
.footer-column form {
    margin-top: 10px;
    display: flex;
    width: 100%;
}

.footer-column input[type="email"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #444;
    background-color: #3a3a3a;
    color: #f1f1f1;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.footer-column input[type="email"]:focus {
    outline: none;
    border-color: #ff6700;
}

.btn-subscribe {
    padding: 8px 15px;
    background-color: #ff6700;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-subscribe:hover {
    background-color: #ff4900;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-media a {
    color: #f1f1f1;
    font-size: 20px;
    transition: color 0.3s;
}

.social-media a:hover {
    color: #ff6700;
}

/* 响应式调整 */
@media screen and (max-width: 576px) {
    .login-wrapper {
        max-width: 95%;
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .other-login p::before,
    .other-login p::after {
        width: 25%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forgot-password {
        margin-top: 10px;
    }
} 