/* 账户页面移动端样式优化 */

/* 移动端响应式样式 */
@media (max-width: 768px) {
    #div_id_password1 > button {
        top: 36% !important;
    }
    #div_id_password2 > button {
        top: 72% !important;
    }
    /* 减少移动端页面顶部空白 */
    .main-content,.py-5 {
        padding-top: 0 !important;
    }
    
    /* 账户卡片样式调整 */
    .account-card {
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
        margin-top: 0.5rem; /* 减少顶部边距 */
        margin-bottom: 1rem;
    }
    
    .account-card .card-body {
        padding: 1.5rem !important; /* 移动端减小内边距 */
    }
    
    /* 标题样式优化 */
    .account-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        color: #333;
        font-weight: 600;
    }
    
    /* 表单元素样式优化 */
    .account-form .form-control {
        height: 48px; /* 更大的输入区域，便于触摸 */
        font-size: 16px; /* 避免iOS自动缩放 */
        padding: 10px 15px;
        border-radius: 8px;
        border: 1px solid #ddd;
        background-color: #f9f9f9;
    }
    
    .account-form .form-control:focus {
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(143, 113, 208, 0.25);
        border-color: #8F71D0;
    }
    
    /* 表单布局优化 */
    .account-form .form-group {
        margin-bottom: 1rem;
    }
    
    .account-form label {
        color: #555;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    
    /* 错误消息样式 */
    .account-form .alert-danger {
        border-radius: 8px;
        padding: 0.75rem 1rem;
        background-color: rgba(220, 53, 69, 0.1);
        border: 1px solid rgba(220, 53, 69, 0.2);
        color: #dc3545;
    }
    
    /* 按钮样式优化 */
    .account-form .btn-primary {
        height: 48px; /* 更大的按钮，便于触摸 */
        font-size: 1rem;
        font-weight: 500;
        border-radius: 8px;
        background-color: #8F71D0;
        border-color: #8F71D0;
        box-shadow: 0 2px 6px rgba(143, 113, 208, 0.4);
    }
    
    .account-form .btn-primary:active {
        transform: translateY(1px);
        box-shadow: 0 1px 3px rgba(143, 113, 208, 0.3);
    }
    
    /* 链接样式优化 */
    .account-links {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .account-links p {
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }
    
    .account-links a {
        color: #8F71D0;
        text-decoration: none;
        font-weight: 500;
        position: relative;
    }
    
    .account-links a:active {
        color: #7B30D4;
    }
    
    /* 条款和隐私政策提示 */
    .terms-privacy {
        margin-top: 1.5rem;
        color: #777;
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    /* 添加触摸反馈效果 */
    .touch-feedback {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .touch-feedback:active {
        transform: scale(0.98);
    }
    
    /* 输入框焦点状态优化 */
    .form-control:focus + .input-group-append .input-group-text {
        border-color: #8F71D0;
    }
    
    /* 社交登录按钮 */
    .social-login {
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
        gap: 1rem;
    }
    
    .social-login-btn {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f5f5f5;
        color: #333;
        font-size: 1.2rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .social-login-btn:active {
        transform: scale(0.95);
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    
    /* 页面垂直间距优化 */
    .account-container {
        padding-bottom: 2rem;
        min-height: calc(100vh - 170px); /* 确保在小屏幕上内容居中 */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* 极小屏幕额外优化 */
@media (max-width: 380px) {
    /* 进一步减少小屏幕上的顶部间距 */
    .py-5.account-section {
        padding-top: 0.25rem !important;
    }
    
    .account-card {
        margin-top: 0.25rem;
    }
    
    .account-container {
        padding-top: 0.25rem;
    }
    
    .account-card .card-body {
        padding: 1.25rem !important;
    }
    
    .account-title {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }
    
    .account-form .form-control,
    .account-form .btn-primary {
        height: 44px;
    }
} 