/* 🎴 创建账号模态框样式 */

/* 模态框容器 */
.account-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 模态框遮罩 */
.account-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* 模态框内容 */
.account-modal-content {
    background: 
        linear-gradient(145deg, 
            #faf7f2 0%,
            #f2e8d8 50%,
            #ead5c1 100%
        );
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(212, 175, 55, 0.2);
    border: 3px solid #DAA520;
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 模态框头部 */
.account-modal-header {
    padding: 25px 30px 20px;
    border-bottom: 2px solid rgba(218, 165, 32, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: 
        linear-gradient(135deg, 
            rgba(255, 215, 0, 0.1) 0%,
            rgba(218, 165, 32, 0.05) 100%
        );
}

.account-modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 700;
    color: #8B4513;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.account-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #8B4513;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.account-modal-close:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: rotate(90deg);
}

/* 模态框主体 */
.account-modal-body {
    padding: 30px;
}

/* 账号优势展示 */
.account-benefits {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(218, 165, 32, 0.2);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(218, 165, 32, 0.4);
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 14px;
    color: #8B4513;
    font-weight: 500;
    line-height: 1.3;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    color: #8B4513;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #DAA520;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.3);
}

.form-group input::placeholder {
    color: rgba(139, 69, 19, 0.5);
}

/* 复选框样式 */
.form-checkbox {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-checkbox label {
    font-size: 13px;
    color: #8B4513;
    line-height: 1.4;
    margin: 0;
}

.form-checkbox a {
    color: #DAA520;
    text-decoration: none;
    font-weight: 600;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.account-submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(45deg, #DAA520, #FFD700);
    color: #8B4513;
    border: none;
    border-radius: 12px;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.3);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.account-submit-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
}

.account-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    color: rgba(139, 69, 19, 0.7);
}

/* 登录链接 */
.account-login-link {
    text-align: center;
    font-size: 14px;
    color: #8B4513;
}

.account-login-link a {
    color: #DAA520;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.account-login-link a:hover {
    text-decoration: underline;
}

/* 按钮样式 - 账号按钮 */
.wish-btn--account {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: 2px solid #357ABD;
}

.wish-btn--account:hover {
    background: linear-gradient(135deg, #357ABD, #2E6DA4);
    border-color: #2E6DA4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* 成功状态按钮 */
.btn-success {
    background: linear-gradient(135deg, #5CB85C, #449D44) !important;
    border-color: #449D44 !important;
    cursor: not-allowed !important;
}

.btn-success:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.3) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .account-modal-content {
        width: 95%;
        margin: 20px;
        max-height: 85vh;
    }
    
    .account-modal-header {
        padding: 20px 25px 15px;
    }
    
    .account-modal-header h2 {
        font-size: 20px;
    }
    
    .account-modal-body {
        padding: 25px 20px;
    }
    
    .account-benefits {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .benefit-item {
        padding: 12px;
    }
    
    .benefit-text {
        font-size: 13px;
    }
    
    .form-group input {
        padding: 10px 14px;
        font-size: 16px; /* 防止iOS缩放 */
    }
}

@media (max-width: 480px) {
    .account-modal-content {
        width: 98%;
        margin: 10px;
        border-radius: 15px;
    }
    
    .account-modal-header {
        padding: 15px 20px 12px;
    }
    
    .account-modal-header h2 {
        font-size: 18px;
    }
    
    .account-modal-body {
        padding: 20px 15px;
    }
    
    .account-benefits {
        margin-bottom: 25px;
    }
    
    .benefit-item {
        padding: 10px;
    }
    
    .benefit-icon {
        font-size: 18px;
    }
    
    .benefit-text {
        font-size: 12px;
    }
}
