/* 注册页面样式 */
#register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #0c1a2a;
}

.auth-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    height: 700px;
    background-color: #0f2133;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.auth-card {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.auth-header {
    margin-bottom: 10px;
    text-align: center;
}

.auth-header h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 10px;
}

.auth-header p {
    color: #a0a0a0;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00c8ff;
}

.input-with-icon input,select {
    width: 100%;
    padding: 12px 12px 12px 45px;
    /* background-color: #0c1a2a; */
    border: 1px solid #1c3654;
    border-radius: 5px;
    /* color: #ffffff; */
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #00c8ff;
}

/* 添加到现有CSS文件末尾 */
.form-tip {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
}

.form-tip.error {
    color: #e74c3c;
}

/* 确保错误提示显示在表单元素下方 */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group small {
    display: block;
}

.form-tip.error {
    color: #ff5252;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.terms-agreement {
    display: flex;
    align-items: center;
}

.terms-agreement input {
    margin-right: 8px;
}

.terms-agreement label {
    color: #a0a0a0;
    font-size: 14px;
}

.terms-agreement a {
    color: #00c8ff;
    text-decoration: none;
    transition: color 0.3s;
}

.terms-agreement a:hover {
    color: #00a8df;
    text-decoration: underline;
}

.auth-btn {
    background-color: #00c8ff;
    color: #0c1a2a;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
    width: 100%;
}

.auth-btn:hover {
    background-color: #00a8df;
}

.auth-footer {
    margin-top: auto;
    text-align: center;
}

.auth-footer p {
    color: #a0a0a0;
    margin-bottom: 15px;
}

.auth-footer a {
    color: #00c8ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #00a8df;
    text-decoration: underline;
}

.social-login {
    margin-top: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0c1a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00c8ff;
    font-size: 20px;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #00c8ff;
    color: #0c1a2a;
    transform: translateY(-3px);
}

.auth-image {
    flex: 1;
    position: relative;
    background-image: url('/static/img/register-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 26, 42, 0.8), rgba(0, 200, 255, 0.3));
}

.auth-quote {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 30px;
}

.auth-quote h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
    font-style: italic;
}

.auth-quote p {
    color: #e0e0e0;
    font-size: 16px;
}

/* 滑动验证码样式 */
.slider-captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.slider-captcha-container {
    background-color: #0f2133;
    border-radius: 10px;
    width: 350px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.slider-captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #1c3654;
}

.slider-captcha-header h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
}

.close-captcha {
    color: #a0a0a0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-captcha:hover {
    color: #ffffff;
}

.slider-captcha-body {
    padding: 20px;
}

.captcha-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.captcha-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.captcha-puzzle {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0;
    left: 0;
    cursor: pointer;
    transition: left 0.1s;
}

.captcha-puzzle img {
    width: 100%;
    height: 100%;
}

.slider-container {
    margin-bottom: 20px;
}

.slider-track {
    position: relative;
    height: 40px;
    background-color: #0c1a2a;
    border-radius: 20px;
}

.slider-bar {
    position: absolute;
    height: 100%;
    background-color: rgba(0, 200, 255, 0.3);
    border-radius: 20px 0 0 20px;
    transition: width 0.1s;
}

.slider-button {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: #00c8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c1a2a;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: left 0.1s;
}

.slider-button:hover {
    background-color: #00a8df;
}

.slider-tip {
    text-align: center;
    margin-top: 10px;
    color: #a0a0a0;
    font-size: 14px;
}

.captcha-result {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.captcha-result.success {
    background-color: rgba(0, 200, 100, 0.2);
    color: #00c864;
}

.captcha-result.error {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff5252;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        height: auto;
    }
    
    .auth-image {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .slider-captcha-container {
        width: 90%;
    }
}

/* 添加到现有CSS文件中 */

/* Logo容器样式 */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-container img {
    height: 50px;
    margin-right: 10px;
}

.logo-container h1 {
    font-size: 20px;
    background: linear-gradient(to right, #00c8ff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 返回首页按钮 */
.back-to-home {
    margin-top: 20px;
}

.back-to-home a {
    display: inline-flex;
    align-items: center;
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s;
}

.back-to-home a:hover {
    color: #00c8ff;
}

.back-to-home i {
    margin-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1c3654;
    color: #a0a0a0;
}

/* Flash 消息样式 - 简化版 */
.flash-message {
    padding: 10px 0 0 0;
    margin: 0px 0;
    font-weight: bold;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.flash-message.error {
    color: #f44336;
}

.flash-message.success {
    color: #4caf50;
}

.flash-message.info {
    color: #2196f3;
}

/* 添加输入框错误状态样式 */
.input-with-icon.error input {
    border-color: #ff5252;
    box-shadow: 0 0 0 1px #ff5252;
}

.form-tip {
    font-size: 12px;
    margin-top: 5px;
    color: #a0a0a0;
    transition: color 0.3s;
}

.form-tip.error {
    color: #ff5252;
}

/* 添加输入框聚焦动画 */
@keyframes focusAnimation {
    0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(255, 82, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

.input-with-icon.error input:focus {
    animation: focusAnimation 1s ease-in-out;
}