@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #000 url('../res/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Noto Sans SC', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    color: #fff;
}

/* 环境光与遮罩 */
.bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 5, 20, 0.4);
    z-index: 1;
}

.ambient-light {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(144,202,255,0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 2;
}

.main-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    max-height: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* 左侧品牌区 */
.brand-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-section.show {
    opacity: 1;
    transform: translateX(0);
}

.brand-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(180deg, #FFFFFF 0%, #D8EFFF 50%, #90CAFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(144, 202, 255, 0.4);
    letter-spacing: 10px;
    margin-bottom: 10px;
}

.brand-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: #CDE6FF;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    font-size: 1.1rem;
    color: #E6F3FF;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.9;
    transition: all 0.3s;
}

.feature-item i {
    font-size: 1.4rem;
    color: #5BC0EB;
    text-shadow: 0 0 10px rgba(91,192,235,0.8);
}

/* 右侧表单区：Glassmorphism毛玻璃 */
.form-section {
    width: 420px;
    perspective: 1000px;
}

.glass-card {
    background: rgba(15, 25, 45, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    
    opacity: 0;
    transform: translateY(30px) rotateX(5deg);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card.show {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.card-header {
    text-align: center;
    margin-bottom: 35px;
}

.card-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 8px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.card-header p {
    font-size: 0.8rem;
    color: #7A9FCA;
    letter-spacing: 3px;
}

/* 输入框定制 */
.custom-form .layui-form-item {
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-group:focus-within {
    background: rgba(0, 0, 0, 0.5);
    border-color: #5BC0EB;
    box-shadow: 0 0 15px rgba(91, 192, 235, 0.3);
}

.input-group i {
    padding: 0 15px;
    color: #7A9FCA;
    font-size: 18px;
    transition: color 0.3s;
}

.input-group:focus-within i {
    color: #5BC0EB;
}

.input-group input.layui-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px 12px 0;
    color: #FFFFFF;
    font-size: 1rem;
    height: 48px;
}

.input-group input::placeholder {
    color: #547194;
}

/* 验证码特别行 */
.vercode-item {
    display: flex;
    align-items: center;
}

.captcha-box {
    width: 120px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.captcha-box:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.captcha-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 提交按钮 */
.submit-item {
    margin-top: 40px;
    margin-bottom: 0;
}

.submit-btn {
    width: 100%;
    height: 54px;
    border-radius: 27px;
    background: linear-gradient(90deg, #1A8CFF 0%, #00C6FF 100%);
    color: #FFF;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 25px rgba(26, 140, 255, 0.4);
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(26, 140, 255, 0.6);
    color: #FFF;
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(26, 140, 255, 0.4);
}

.submit-btn.layui-btn-disabled {
    background: #4a5d73;
    box-shadow: none;
    color: #a0aebf;
    cursor: not-allowed;
    transform: none;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    body {
        align-items: flex-start;
    }
    
    .main-container {
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        gap: 30px;
        padding: 40px 20px 80px 20px;
        margin-top: 20px;
    }
    
    .brand-section {
        align-items: center;
        text-align: center;
        transform: translateY(-30px);
    }
    
    .brand-section.show {
        transform: translateY(0);
    }
    
    .brand-title {
        font-size: 3.5rem;
    }
    
    .feature-list {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .form-section {
        width: 100%;
    }
    
    .glass-card {
        padding: 30px 20px;
    }
    
    .brand-title {
        font-size: 2.5rem;
    }
    
    .brand-subtitle {
        font-size: 1rem;
    }
}

/* layui弹窗文字颜色修正（body全局白色字体会导致弹窗文字不可见） */
.layui-layer,
.layui-layer-content,
.layui-layer-title,
.layui-layer-btn a,
.layui-layer-dialog .layui-layer-content {
    color: #333 !important;
}

.layui-layer-title {
    color: #333 !important;
}

.layui-layer-btn .layui-layer-btn0 {
    color: #fff !important;
}
