/* Swagger自定义样式 */

#custom-login-container button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

#custom-login-container button:active {
    transform: translateY(0);
}

/* 登录模态框动画 */
#custom-login-modal {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#custom-login-modal > div {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 输入框焦点样式 */
#custom-login-modal input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* 按钮禁用状态 */
#custom-login-modal button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #custom-login-modal > div {
        width: 90% !important;
        padding: 20px !important;
    }

    #custom-login-container {
        top: 5px !important;
        right: 5px !important;
    }

    #custom-login-container button {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}
