/* ========================================
   账号注册页样式 - 与全站风格统一
   ======================================== */

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #1D2129;
    line-height: 1.6;
    background-color: #F7F8FA;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    vertical-align: middle;
}

/* ===== 背景装饰层 ===== */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(22, 93, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -2;
}

.bg-gradient {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.bg-gradient.top {
    top: -200px;
    right: -200px;
    background-color: rgba(22, 93, 255, 0.15);
}

.bg-gradient.bottom {
    bottom: -200px;
    left: -200px;
    background-color: rgba(255, 125, 0, 0.12);
}

/* ===== 主容器 ===== */
.login-container {
    width: 92%;
    max-width: 1000px;
    min-height: 620px;
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 20px 0;
}

/* ===== 左侧品牌区 ===== */
.brand-section {
    background: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}

.brand-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.brand-section a {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
}

.brand-logo {
    font-size: 18px;
    font-weight: 600;
    padding: 12px 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.brand-logo:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ===== 右侧表单区 ===== */
.form-section {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 32px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1D2129;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #86909C;
}

/* ===== 表单通用样式 ===== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #4E5969;
}

.form-input {
    width: 100%;
    padding: 10px 10px;
    border: 1px solid #DCDFE6;
    border-radius: 8px;
    font-size: 14px;
    color: #1D2129;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.form-input:focus {
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.form-input::placeholder {
    color: #C9CDD4;
}

/* ===== 验证码区域 ===== */
#vdcode {
    margin-bottom: 6px;
}

#vdimgck {
    width: 120px;
    height: 35px;
    border-radius: 6px;
    border: 1px solid #DCDFE6;
    margin-right: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

#vdimgck:hover {
    opacity: 0.85;
}

.form-group > a {
    font-size: 13px;
    color: #165DFF;
    vertical-align: middle;
}

.form-group > a:hover {
    text-decoration: underline;
}

/* ===== 提交按钮 ===== */
.login-button {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    background-color: #165DFF;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
    font-family: inherit;
}

.login-button:hover {
    background-color: #0E42D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

/* ===== 底部跳转区 ===== */
.social-login {
    margin-top: 28px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #F0F2F5;
}

.social-button {
    background: none;
    border: none;
    font-size: 14px;
    color: #86909C;
    cursor: default;
    font-family: inherit;
}

.signup-link {
    color: #165DFF;
    font-weight: 500;
    margin-left: 4px;
}

.signup-link:hover {
    text-decoration: underline;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .brand-section {
        padding: 36px 20px;
        min-height: 100px;
    }

    .form-section {
        padding: 40px 30px;
    }

    .login-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 95%;
        border-radius: 12px;
    }

    .form-section {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 22px;
    }

    #vdimgck {
        display: block;
        margin: 0 0 8px 0;
    }
}