* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f4ff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 防止页面滚动 */
}

.logo-container {
    background-color: white;
    display: flex;
    justify-content: center;
    padding: 15px 0;
    border-bottom: 1px solid #1a73e8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container img {
    height: 50px;
    width: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    height: calc(100vh - 82px); /* 82px是logo容器的高度 */
    display: flex;
    flex-direction: column;
}

.form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(26,115,232,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 768px) {
    .form-container {
        flex-direction: row;
    }
}

.left-panel {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
}

@media (min-width: 768px) {
    .left-panel {
        width: 50%;
        order: 0;
    }
}

.gift-package {
    text-align: center;
    margin-bottom: 30px;
}

.gift-package h1 {
    font-size: 28px;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.amount {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.divider {
    height: 2px;
    background-color: rgba(255,255,255,0.3);
    width: 85%;
    margin: 0 auto 20px;
}

.reward {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.right-panel {
    padding: 40px;
    order: 0;
    background-color: white;
}

@media (min-width: 768px) {
    .right-panel {
        width: 50%;
        order: 1;
    }
}

.right-panel h2 {
    text-align: center;
    color: #1a73e8;
    font-size: 24px;
    margin-bottom: 35px;
    font-weight: 600;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e8f0fe;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.2);
    outline: none;
}

.verification-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.verification-group .input-group {
    flex-grow: 1;
    margin-bottom: 0;
}

.verification-btn {
    height: 52px;
    padding: 0 20px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verification-btn:hover {
    background-color: #1557b0;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26,115,232,0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0a367d 100%);
    transform: translateY(-1px);
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: #1a73e8;
    font-size: 14px;
}

.icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.phone-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

.lock-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
}

.email-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.key-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'%3E%3C/path%3E%3C/svg%3E");
}

.verification-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.verification-group .input-group {
    flex-grow: 1;
    margin-bottom: 0;
}

.verification-btn {
    height: 52px; /* 与输入框高度一致 */
    padding: 0 15px;
    border: 1px solid #E2E8F0;
    border-radius: 5px;
    background-color: white;
    color: #718096;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-btn:hover {
    background-color: #F7FAFC;
    color: #4A5568;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #D4AF37;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #C09A30;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: #718096;
    font-size: 12px;
}

/* 移动端特定样式 */
@media (max-width: 767px) {
    .left-panel {
        flex-direction: row;
        padding: 20px;
        align-items: flex-start;
    }
    
    .gift-package {
        text-align: center; /* 文字居中 */
        margin-bottom: 0;
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .gift-package h1 {
        margin-bottom: 10px;
    }
    
    .divider {
        margin: 10px auto;
        width: 80%;
    }
    
    .promo-image {
        margin-bottom: 0;
        width: 50%;
        padding-left: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .amount {
        margin-bottom: 10px;
    }
    
    .reward {
        margin-bottom: 0;
    }
}

.form-container::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(26,115,232,0.1) 0%, rgba(13,71,161,0.1) 100%);
    border-radius: 50%;
    z-index: -1;
}

.promo-image {
    margin-top: auto; /* 将图片推到底部 */
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.promo-image img {
    max-width: 100%;
    max-height: 40vh; /* 限制图片最大高度 */
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 调整其他元素的间距以适应一屏 */
.gift-package {
    margin-bottom: 20px;
}

.right-panel {
    padding: 30px;
}

.input-group {
    margin-bottom: 15px;
}

.footer {
    margin-top: 10px;
    padding-bottom: 10px;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .container {
        height: calc(100vh - 62px); /* 调整移动端高度 */
        margin: 10px auto;
    }

    .form-container {
        max-height: calc(100vh - 100px);
    }

    .left-panel {
        background: linear-gradient(90deg, #1a73e8 0%, #0d47a1 100%);
        padding: 20px;
    }
    
    .gift-package {
        text-align: center;
        margin-bottom: 0;
        width: 50%;
    }
    
    .gift-package h1 {
        font-size: calc(18px + 1vw); /* 响应式字体大小 */
    }
    
    .amount {
        font-size: calc(24px + 1.5vw); /* 响应式字体大小 */
    }
    
    .reward {
        font-size: calc(14px + 0.5vw); /* 响应式字体大小 */
    }
    
    .promo-image {
        width: 50%;
        padding-left: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .promo-image img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* 添加更小屏幕的适配 */
@media (max-width: 480px) {
    .gift-package h1 {
        font-size: 16px;
    }
    
    .amount {
        font-size: 22px;
    }
    
    .reward {
        font-size: 14px;
    }
}

.input-group.error {
    border: 1px solid #ff4d4f;
    box-shadow: 0 0 3px rgba(255,77,79,.2);
}
.input-group.error .icon {
    background-color: #ff4d4f;
}