/* 主容器 */
.register-wrapper {
    display: flex;
    width: 100%;
    max-width: 970px;
    background-color: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin: 0 auto;
}

/* 左侧区域 */
.left-section {
    flex: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
     url('../../img/login3.png') center/cover;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-text {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.left-content {
    margin-top: 40px;
}

.left-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.left-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.image-item {
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.05);
}

/* 右侧注册区域 */
.right-section {
    flex: 1;
    padding:10px 25px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.site-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71, #1abc9c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 15px;
    position: relative;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.site-logo img{
    height: 50px;
    width: 60px;
}

.slot-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 12px;
    font-weight: bold;
}

.slot-icon:nth-child(1) {
    top: 10px;
    left: 10px;
}

.slot-icon:nth-child(2) {
    top: 10px;
    right: 10px;
}

.slot-icon:nth-child(3) {
    bottom: 10px;
    left: 10px;
}

.slot-icon:nth-child(4) {
    bottom: 10px;
    right: 10px;
}

.site-url {
    color: #2ecc71;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
}

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

.form-label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

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

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2ecc71;
    font-size: 16px;
}

.form-input {
    width:100%;
    padding:12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size:13px;
    background-color: #f9f9f9;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #2ecc71;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 16px;
}

.btn {
    width: 100%;
    padding:8px 14px;
    border: none;
    border-radius: 8px;
    font-size:14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}


.forgot-password{
    font-size: 14px;
    margin: 25px auto 0;
    display: block;
    text-align: center;
}


.btn-register {
    background-color: #2ecc71;
    color: white;
    display: block;
}

.btn-register:hover {
    background-color: #27ae60;
}

.btn-login {
    background-color: white;
    color: #2ecc71;
    border: 1px solid #2ecc71;
    display: block;
}

.login-header{
    margin-bottom: 16px;
}

.btn-login:hover {
    background-color: #f8f9fa;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.login-link {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
}

.login-link:hover {
    color: #2ecc71;
    text-decoration: underline;
}

/* 响应式设计 - 768px */
@media (max-width: 768px) {
    .register-wrapper {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }
    
    .left-section {
        padding: 30px;
        min-height: 300px;
        display:none;
    }
    
    .left-content h2 {
        font-size: 24px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .image-item {
        height: 150px;
    }
    
    .right-section {
        padding: 40px 30px;
    }
    
    .logo-text {
        font-size: 32px;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .register-wrapper {
        border-radius: 10px;
    }
    .left-section{
        display:none;
    }
    
    .left-section, .right-section {
        padding:8px 20px 30px;
    }

    .right-section {
        min-height: 100vh;
        display: block;
    }
    
    .site-logo {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    
    .slot-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .left-content h2 {
        font-size: 22px;
    }
}

/* 消息提示 */
.message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border-left: 4px solid #2ecc71;
}

.message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.close-btn {
    float: right;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #7f8c8d;
}

/* 表单验证样式 */
.form-input.error {
    border-color: #e74c3c;
}

.error-text {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-text.show {
    display: block;
}

/* 条款同意 */
.terms-agreement {
    display: flex;
    align-items: flex-start;
    margin: 15px 0 20px;
}

.terms-checkbox {
    margin-right: 10px;
    margin-top: 3px;
}

.terms-text {
    font-size: 13px;
    color: #666;
}

.terms-link {
    color: #2ecc71;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/*** 提示框 ***/
.toast-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}
.toast {
    background-color:#6d0000f0;
    color: #ffffff;
    border-radius: 8px;
    padding: 16px 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    pointer-events: auto;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast.success {
    border-left: 4px solid #07c160;
}

.toast.success .toast-icon {
    background-color: rgba(7, 193, 96, 0.1);
    color: #07c160;
}

.toast.error {
    border-left: 4px solid #fa5151;
}

.toast.error .toast-icon {
    background-color: rgba(250, 81, 81, 0.1);
    color: #fa5151;
}

.toast.warning {
    border-left: 4px solid #fa9d3b;
}

.toast.warning .toast-icon {
    background-color: rgba(250, 157, 59, 0.1);
    color: #fa9d3b;
}

.toast.default {
    border-left: 4px solid #10aeff;
}

.toast.default .toast-icon {
    background-color: rgba(16, 174, 255, 0.1);
    color: #10aeff;
}

.toast-message {
    font-size: 15px;
    line-height: 1.5;
}